Package com.vk.api.sdk.queries.board
Class BoardGetTopicsQueryWithExtended
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<BoardGetTopicsQueryWithExtended,GetTopicsExtendedResponse>
-
- com.vk.api.sdk.queries.board.BoardGetTopicsQueryWithExtended
-
public class BoardGetTopicsQueryWithExtended extends AbstractQueryBuilder<BoardGetTopicsQueryWithExtended,GetTopicsExtendedResponse>
Query for Board.getTopics method
-
-
Constructor Summary
Constructors Constructor Description BoardGetTopicsQueryWithExtended(VkApiClient client, ServiceActor actor, int groupId)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersBoardGetTopicsQueryWithExtended(VkApiClient client, UserActor actor, int groupId)Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoardGetTopicsQueryWithExtendedcount(java.lang.Integer value)Number of topics to return.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected BoardGetTopicsQueryWithExtendedextended(java.lang.Boolean value)'1' — to return information about users who created topics or who posted there last, '0' — to return no additional fields (default)protected BoardGetTopicsQueryWithExtendedgetThis()Get reference to this objectprotected BoardGetTopicsQueryWithExtendedgroupId(int value)ID of the community that owns the discussion board.BoardGetTopicsQueryWithExtendedoffset(java.lang.Integer value)Offset needed to return a specific subset of topics.BoardGetTopicsQueryWithExtendedorder(GetTopicsOrder value)Sort order: '1' — by date updated in reverse chronological order.BoardGetTopicsQueryWithExtendedpreview(GetTopicsPreview value)'1' — to return the first comment in each topic,, '2' — to return the last comment in each topic,, '0' — to return no comments.BoardGetTopicsQueryWithExtendedpreviewLength(java.lang.Integer value)Number of characters after which to truncate the previewed comment.BoardGetTopicsQueryWithExtendedtopicIds(java.lang.Integer... value)topic_ids IDs of topics to be returned (100 maximum).BoardGetTopicsQueryWithExtendedtopicIds(java.util.List<java.lang.Integer> value)IDs of topics to be returned (100 maximum).-
Methods inherited from class com.vk.api.sdk.client.AbstractQueryBuilder
accessToken, build, captchaKey, captchaSid, clientSecret, confirm, getBody, getMethod, getParams, lang, toString, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, version
-
Methods inherited from class com.vk.api.sdk.client.ApiRequest
execute, executeAsRaw, executeAsString, getClient, getGson, getHeaders, getResponseClass, getUrl, setHeaders
-
-
-
-
Constructor Detail
-
BoardGetTopicsQueryWithExtended
public BoardGetTopicsQueryWithExtended(VkApiClient client, UserActor actor, int groupId)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokengroupId- value of "group id" parameter. Minimum is 1.
-
BoardGetTopicsQueryWithExtended
public BoardGetTopicsQueryWithExtended(VkApiClient client, ServiceActor actor, int groupId)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokengroupId- value of "group id" parameter. Minimum is 1.
-
-
Method Detail
-
groupId
protected BoardGetTopicsQueryWithExtended groupId(int value)
ID of the community that owns the discussion board.- Parameters:
value- value of "group id" parameter. Minimum is 1.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
order
public BoardGetTopicsQueryWithExtended order(GetTopicsOrder value)
Sort order: '1' — by date updated in reverse chronological order. '2' — by date created in reverse chronological order. '-1' — by date updated in chronological order. '-2' — by date created in chronological order. If no sort order is specified, topics are returned in the order specified by the group administrator. Pinned topics are returned first, regardless of the sorting.- Parameters:
value- value of "order" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
offset
public BoardGetTopicsQueryWithExtended offset(java.lang.Integer value)
Offset needed to return a specific subset of topics.- Parameters:
value- value of "offset" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
count
public BoardGetTopicsQueryWithExtended count(java.lang.Integer value)
Number of topics to return.- Parameters:
value- value of "count" parameter. Maximum is 100. Minimum is 0. By default 40.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
extended
protected BoardGetTopicsQueryWithExtended extended(java.lang.Boolean value)
'1' — to return information about users who created topics or who posted there last, '0' — to return no additional fields (default)- Parameters:
value- value of "extended" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
preview
public BoardGetTopicsQueryWithExtended preview(GetTopicsPreview value)
'1' — to return the first comment in each topic,, '2' — to return the last comment in each topic,, '0' — to return no comments. By default: '0'.- Parameters:
value- value of "preview" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
previewLength
public BoardGetTopicsQueryWithExtended previewLength(java.lang.Integer value)
Number of characters after which to truncate the previewed comment. To preview the full comment, specify '0'.- Parameters:
value- value of "preview length" parameter. Minimum is 0. By default 90.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
topicIds
public BoardGetTopicsQueryWithExtended topicIds(java.lang.Integer... value)
topic_ids IDs of topics to be returned (100 maximum). By default, all topics are returned. If this parameter is set, the 'order', 'offset', and 'count' parameters are ignored.- Parameters:
value- value of "topic ids" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
topicIds
public BoardGetTopicsQueryWithExtended topicIds(java.util.List<java.lang.Integer> value)
IDs of topics to be returned (100 maximum). By default, all topics are returned. If this parameter is set, the 'order', 'offset', and 'count' parameters are ignored.- Parameters:
value- value of "topic ids" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected BoardGetTopicsQueryWithExtended getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<BoardGetTopicsQueryWithExtended,GetTopicsExtendedResponse>- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
essentialKeys
protected java.util.List<java.lang.String> essentialKeys()
Description copied from class:AbstractQueryBuilderGet list of required parameter names- Specified by:
essentialKeysin classAbstractQueryBuilder<BoardGetTopicsQueryWithExtended,GetTopicsExtendedResponse>- Returns:
- list of names
-
-