UniverseChatMessage class

Constructors

UniverseChatMessage({required String uuid, required String username, required String userIdentifier, required String message, String? nickname, String? avatarUrl, required DateTime sentAt, required UniverseChatUserType userType, String? replyMessageUUID})
const
UniverseChatMessage.fromJson(String source)
factory
UniverseChatMessage.fromMap(Map<String, dynamic> map)
factory

Properties

avatarUrl String?
final
hashCode int
The hash code for this object.
no setteroverride
message String
message content
final
nickname String?
final
replyMessageUUID String?
Reply message uuid
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sentAt DateTime
message sent time (UTC+0)
final
userIdentifier String
User identifier May be the RPMTW account Uuid, Minecraft account Uuid or Discord account Id Format: rpmtw:uuid, minecraft:uuid or discord:id
final
username String
Username (not a nickname, may be the username of RPMTW account, Minecraft account or Discord account)
final
userType UniverseChatUserType
final
uuid String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

getByUUID(String uuid) Future<UniverseChatMessage?>