ForumTopicInfo class final

Contains basic information about a forum topic

Inheritance

Constructors

ForumTopicInfo({required int messageThreadId, required String name, required ForumTopicIcon icon, required int creationDate, required MessageSender creatorId, required bool isGeneral, required bool isOutgoing, required bool isClosed, required bool isHidden, dynamic extra, int? clientId})
Contains basic information about a forum topic
const
ForumTopicInfo.fromJson(Map<String, dynamic> json)
Parses a ForumTopicInfo from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object.
final
creationDate → int
Point in time (Unix timestamp) when the topic was created
final
creatorId → MessageSender
Identifier of the creator of the topic
final
extra → dynamic
"@extra" of the request this object answers.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → ForumTopicIcon
Icon of the topic
final
isClosed → bool
True, if the topic is closed
final
isGeneral → bool
True, if the topic is the General topic list
final
isHidden → bool
True, if the topic is hidden above the topic list and closed; for General topic only
final
isOutgoing → bool
True, if the topic was created by the current user
final
messageThreadId → int
Message thread identifier of the topic
final
name → String
Name of the topic
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? messageThreadId, String? name, ForumTopicIcon? icon, int? creationDate, MessageSender? creatorId, bool? isGeneral, bool? isOutgoing, bool? isClosed, bool? isHidden, dynamic extra, int? clientId}) → ForumTopicInfo
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String
TDLib type name.