Class NotificationsSendMessageQuery

    • Constructor Detail

      • NotificationsSendMessageQuery

        public NotificationsSendMessageQuery​(VkApiClient client,
                                             ServiceActor actor,
                                             java.lang.String message,
                                             java.lang.Integer... userIds)
        Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
        Parameters:
        client - VK API client
        actor - actor with access token
        message - value of "message" parameter.
        userIds - value of "user ids" parameter.
      • NotificationsSendMessageQuery

        public NotificationsSendMessageQuery​(VkApiClient client,
                                             ServiceActor actor,
                                             java.lang.String message,
                                             java.util.List<java.lang.Integer> userIds)
        Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
        Parameters:
        client - VK API client
        actor - actor with access token
        message - value of "message" parameter.
        userIds - value of "user ids" parameter.
    • Method Detail

      • message

        protected NotificationsSendMessageQuery message​(java.lang.String value)
        Set message
        Parameters:
        value - value of "message" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • fragment

        public NotificationsSendMessageQuery fragment​(java.lang.String value)
        Set fragment
        Parameters:
        value - value of "fragment" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • groupId

        public NotificationsSendMessageQuery groupId​(java.lang.Integer value)
        Set group id
        Parameters:
        value - value of "group id" parameter. Minimum is 0.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • randomId

        public NotificationsSendMessageQuery randomId​(java.lang.Integer value)
        Set random id
        Parameters:
        value - value of "random id" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • sendingMode

        public NotificationsSendMessageQuery sendingMode​(SendMessageSendingMode value)
        Type of sending (delivering) notifications: 'immediately' — push and bell notifications will be delivered as soon as possible, 'delayed' — push and bell notifications will be delivered in the most comfortable time for the user, 'delayed_push' — only push notifications will be delivered in the most comfortable time, while the bell notifications will be delivered as soon as possible
        Parameters:
        value - value of "sending mode" parameter. By default immediately.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • userIds

        protected NotificationsSendMessageQuery userIds​(java.lang.Integer... value)
        user_ids Set user ids
        Parameters:
        value - value of "user ids" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • userIds

        protected NotificationsSendMessageQuery userIds​(java.util.List<java.lang.Integer> value)
        Set user ids
        Parameters:
        value - value of "user ids" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.