Package com.vk.api.sdk.actions
Class Notes
- java.lang.Object
-
- com.vk.api.sdk.client.AbstractAction
-
- com.vk.api.sdk.actions.Notes
-
public class Notes extends AbstractAction
List of Notes methods
-
-
Constructor Summary
Constructors Constructor Description Notes(VkApiClient client)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NotesAddQueryadd(UserActor actor, java.lang.String title, java.lang.String text)Creates a new note for the current user.NotesCreateCommentQuerycreateComment(UserActor actor, int noteId, java.lang.String message)Adds a new comment on a note.NotesDeleteQuerydelete(UserActor actor, int noteId)Deletes a note of the current user.NotesDeleteCommentQuerydeleteComment(UserActor actor, int commentId)Deletes a comment on a note.NotesEditQueryedit(UserActor actor, int noteId, java.lang.String title, java.lang.String text)Edits a note of the current user.NotesEditCommentQueryeditComment(UserActor actor, int commentId, java.lang.String message)Edits a comment on a note.NotesGetQueryget(UserActor actor)Returns a list of notes created by a user.NotesGetByIdQuerygetById(UserActor actor, int noteId)Returns a note by its ID.NotesGetCommentsQuerygetComments(UserActor actor, int noteId)Returns a list of comments on a note.NotesRestoreCommentQueryrestoreComment(UserActor actor, int commentId)Restores a deleted comment on a note.-
Methods inherited from class com.vk.api.sdk.client.AbstractAction
getClient
-
-
-
-
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 actortitle- 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 actornoteId- 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 actornoteId- Note ID.- Returns:
- query
-
deleteComment
public NotesDeleteCommentQuery deleteComment(UserActor actor, int commentId)
Deletes a comment on a note.- Parameters:
actor- vk actorcommentId- 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 actornoteId- 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 actorcommentId- 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 actornoteId- Note ID.- Returns:
- query
-
getComments
public NotesGetCommentsQuery getComments(UserActor actor, int noteId)
Returns a list of comments on a note.- Parameters:
actor- vk actornoteId- Note ID.- Returns:
- query
-
restoreComment
public NotesRestoreCommentQuery restoreComment(UserActor actor, int commentId)
Restores a deleted comment on a note.- Parameters:
actor- vk actorcommentId- Comment ID.- Returns:
- query
-
-