java.lang.Object
api.longpoll.bots.methods.impl.VkMethod<Delete.ResponseBody>
api.longpoll.bots.methods.impl.messages.Delete

public class Delete extends VkMethod<Delete.ResponseBody>
Implements messages.delete method.

Deletes one or more messages.

See Also:
  • Constructor Details

    • Delete

      public Delete(String accessToken)
  • Method Details

    • getResponseClass

      protected Class<Delete.ResponseBody> 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<Delete.ResponseBody>
      Returns:
      a class of VK API response.
    • setMessageIds

      public Delete setMessageIds(Integer... messageIds)
    • setMessageIds

      public Delete setMessageIds(Iterable<Integer> messageIds)
    • setSpam

      public Delete setSpam(boolean spam)
    • setGroupId

      public Delete setGroupId(int groupId)
    • setDeleteForAll

      public Delete setDeleteForAll(boolean deleteForAll)
    • setConversationMessageIds

      public Delete setConversationMessageIds(Integer... conversationMessageIds)
    • setConversationMessageIds

      public Delete setConversationMessageIds(Iterable<Integer> conversationMessageIds)
    • setPeerId

      public Delete setPeerId(int peerId)
    • addParam

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