Class RestoreComment

java.lang.Object
api.longpoll.bots.methods.impl.VkMethod<IntegerResponseBody>
api.longpoll.bots.methods.impl.board.RestoreComment

public class RestoreComment extends VkMethod<IntegerResponseBody>
Implements board.deleteComment method.

Restores a comment deleted from a topic on a community's discussion board.

See Also:
  • Constructor Details

    • RestoreComment

      public RestoreComment(String accessToken)
  • Method Details

    • getResponseClass

      protected Class<IntegerResponseBody> getResponseClass()
      Description copied from class: VkMethod
      Gets a class of VK API response. This value is used during deserialization of received JSON.
      Specified by:
      getResponseClass in class VkMethod<IntegerResponseBody>
      Returns:
      a class of VK API response.
    • setGroupId

      public RestoreComment setGroupId(int groupId)
      Sets Group ID.
      Parameters:
      groupId - Group ID.
      Returns:
      this instance.
    • setTopicId

      public RestoreComment setTopicId(int topicId)
      Sets Topic ID.
      Parameters:
      topicId - Topic ID.
      Returns:
      this instance.
    • setCommentId

      public RestoreComment setCommentId(int commentId)
      Sets Comment ID.
      Parameters:
      commentId - Comment ID.
      Returns:
      this instance.
    • addParam

      public RestoreComment addParam(String key, Object value)
      Description copied from class: VkMethod
      Adds URL parameter to HTTP request.
      Overrides:
      addParam in class VkMethod<IntegerResponseBody>
      Parameters:
      key - URL parameter key.
      value - URL parameter value.
      Returns:
      current instance.