Class Notes

    • Constructor Detail

      • Notes

        public Notes​(VkApiClient client)
        Constructor
        Parameters:
        client - vk api client
    • Method Detail

      • add

        public NotesAddQuery add​(UserActor actor,
                                 java.lang.String title,
                                 java.lang.String text)
        Creates a new note for the current user.
        Parameters:
        actor - vk actor
        title - Note title.
        text - Note text.
        Returns:
        query
      • createComment

        public NotesCreateCommentQuery createComment​(UserActor actor,
                                                     int noteId,
                                                     java.lang.String message)
        Adds a new comment on a note.
        Parameters:
        actor - vk actor
        noteId - Note ID.
        message - Comment text.
        Returns:
        query
      • delete

        public NotesDeleteQuery delete​(UserActor actor,
                                       int noteId)
        Deletes a note of the current user.
        Parameters:
        actor - vk actor
        noteId - Note ID.
        Returns:
        query
      • deleteComment

        public NotesDeleteCommentQuery deleteComment​(UserActor actor,
                                                     int commentId)
        Deletes a comment on a note.
        Parameters:
        actor - vk actor
        commentId - Comment ID.
        Returns:
        query
      • edit

        public NotesEditQuery edit​(UserActor actor,
                                   int noteId,
                                   java.lang.String title,
                                   java.lang.String text)
        Edits a note of the current user.
        Parameters:
        actor - vk actor
        noteId - Note ID.
        title - Note title.
        text - Note text.
        Returns:
        query
      • editComment

        public NotesEditCommentQuery editComment​(UserActor actor,
                                                 int commentId,
                                                 java.lang.String message)
        Edits a comment on a note.
        Parameters:
        actor - vk actor
        commentId - Comment ID.
        message - New comment text.
        Returns:
        query
      • get

        public NotesGetQuery get​(UserActor actor)
        Returns a list of notes created by a user.
        Parameters:
        actor - vk actor
        Returns:
        query
      • getById

        public NotesGetByIdQuery getById​(UserActor actor,
                                         int noteId)
        Returns a note by its ID.
        Parameters:
        actor - vk actor
        noteId - Note ID.
        Returns:
        query
      • getComments

        public NotesGetCommentsQuery getComments​(UserActor actor,
                                                 int noteId)
        Returns a list of comments on a note.
        Parameters:
        actor - vk actor
        noteId - Note ID.
        Returns:
        query
      • restoreComment

        public NotesRestoreCommentQuery restoreComment​(UserActor actor,
                                                       int commentId)
        Restores a deleted comment on a note.
        Parameters:
        actor - vk actor
        commentId - Comment ID.
        Returns:
        query