Package org.drinkless.tdlib
Class TdApi.ChatFilter
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.ChatFilter
-
- Enclosing class:
- TdApi
public static class TdApi.ChatFilter extends TdApi.Object
Represents a filter of user chats.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.booleanexcludeArchivedTrue, if archived chats need to be excluded.long[]excludedChatIdsThe chat identifiers of always excluded chats in the filtered chat list.booleanexcludeMutedTrue, if muted chats need to be excluded.booleanexcludeReadTrue, if read chats need to be excluded.StringiconNameThe chosen icon name for short filter representation.booleanincludeBotsTrue, if bots need to be included.booleanincludeChannelsTrue, if channels need to be included.booleanincludeContactsTrue, if contacts need to be included.long[]includedChatIdsThe chat identifiers of always included chats in the filtered chat list.booleanincludeGroupsTrue, if basic groups and supergroups need to be included.booleanincludeNonContactsTrue, if non-contact users need to be included.long[]pinnedChatIdsThe chat identifiers of pinned chats in the filtered chat list.StringtitleThe title of the filter; 1-12 characters without line feeds.
-
Constructor Summary
Constructors Constructor Description ChatFilter()Represents a filter of user chats.ChatFilter(String title, String iconName, long[] pinnedChatIds, long[] includedChatIds, long[] excludedChatIds, boolean excludeMuted, boolean excludeRead, boolean excludeArchived, boolean includeContacts, boolean includeNonContacts, boolean includeBots, boolean includeGroups, boolean includeChannels)Represents a filter of user chats.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
title
public String title
The title of the filter; 1-12 characters without line feeds.
-
iconName
public String iconName
The chosen icon name for short filter representation. If non-empty, must be one of "All", "Unread", "Unmuted", "Bots", "Channels", "Groups", "Private", "Custom", "Setup", "Cat", "Crown", "Favorite", "Flower", "Game", "Home", "Love", "Mask", "Party", "Sport", "Study", "Trade", "Travel", "Work". If empty, use getChatFilterDefaultIconName to get default icon name for the filter.
-
pinnedChatIds
public long[] pinnedChatIds
The chat identifiers of pinned chats in the filtered chat list.
-
includedChatIds
public long[] includedChatIds
The chat identifiers of always included chats in the filtered chat list.
-
excludedChatIds
public long[] excludedChatIds
The chat identifiers of always excluded chats in the filtered chat list.
-
excludeMuted
public boolean excludeMuted
True, if muted chats need to be excluded.
-
excludeRead
public boolean excludeRead
True, if read chats need to be excluded.
-
excludeArchived
public boolean excludeArchived
True, if archived chats need to be excluded.
-
includeContacts
public boolean includeContacts
True, if contacts need to be included.
-
includeNonContacts
public boolean includeNonContacts
True, if non-contact users need to be included.
-
includeBots
public boolean includeBots
True, if bots need to be included.
-
includeGroups
public boolean includeGroups
True, if basic groups and supergroups need to be included.
-
includeChannels
public boolean includeChannels
True, if channels need to be included.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ChatFilter
public ChatFilter()
Represents a filter of user chats.
-
ChatFilter
public ChatFilter(String title, String iconName, long[] pinnedChatIds, long[] includedChatIds, long[] excludedChatIds, boolean excludeMuted, boolean excludeRead, boolean excludeArchived, boolean includeContacts, boolean includeNonContacts, boolean includeBots, boolean includeGroups, boolean includeChannels)
Represents a filter of user chats.- Parameters:
title- The title of the filter; 1-12 characters without line feeds.iconName- The chosen icon name for short filter representation. If non-empty, must be one of "All", "Unread", "Unmuted", "Bots", "Channels", "Groups", "Private", "Custom", "Setup", "Cat", "Crown", "Favorite", "Flower", "Game", "Home", "Love", "Mask", "Party", "Sport", "Study", "Trade", "Travel", "Work". If empty, use getChatFilterDefaultIconName to get default icon name for the filter.pinnedChatIds- The chat identifiers of pinned chats in the filtered chat list.includedChatIds- The chat identifiers of always included chats in the filtered chat list.excludedChatIds- The chat identifiers of always excluded chats in the filtered chat list.excludeMuted- True, if muted chats need to be excluded.excludeRead- True, if read chats need to be excluded.excludeArchived- True, if archived chats need to be excluded.includeContacts- True, if contacts need to be included.includeNonContacts- True, if non-contact users need to be included.includeBots- True, if bots need to be included.includeGroups- True, if basic groups and supergroups need to be included.includeChannels- True, if channels need to be included.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-