Barrage class
Barrage data model, containing complete attribute information of a single barrage.
Constructors
Properties
- businessID ↔ String
-
Business identifier ID of custom type barrage, used to distinguish custom barrages in different business scenarios.
getter/setter pair
- data ↔ String
-
Specific data content of custom type barrage (usually a JSON format string), valid when messageType{@link BarrageType} is CUSTOM.
getter/setter pair
-
extensionInfo
↔ Map<
String, String> -
Barrage extension information, customizable fields (such as display style, priority, etc.). Valid when messageType {@link BarrageType} is TEXT.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- liveID ↔ String
-
The unique identifier ID of the live room/voice chat room to which the barrage belongs.
getter/setter pair
- messageType ↔ BarrageType
-
Barrage message type (text or custom). {@link BarrageType}
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sender ↔ LiveUserInfo
-
User information of the barrage sender (such as user ID, nickname, avatar, etc.). {@link $LiveUserInfo$}
getter/setter pair
- sequence ↔ int
-
Unique sequence ID of the barrage message, used for message sorting and deduplication.
getter/setter pair
- textContent ↔ String
-
Message content of text type barrage, i.e., the text content of the barrage.
getter/setter pair
- timestampInSecond ↔ int
-
Barrage sending timestamp (unit: seconds), used to display the sending time order.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited