LiveGiftModel class
Model - 直播间礼物
Constructors
Properties
- animation ↔ String?
-
动画
getter/setter pair
- description ↔ String?
-
礼物描述
getter/setter pair
- giftId ↔ int?
-
礼物ID
getter/setter pair
- giftType ↔ int?
-
GiftTypeEnum
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon ↔ String?
-
礼物图标
getter/setter pair
- isShakeEgg ↔ bool?
-
是否支持跳蛋
getter/setter pair
- name ↔ String?
-
礼物名称
getter/setter pair
- price ↔ int?
-
礼物价格
getter/setter pair
- propsCount ↔ int?
-
道具数量
getter/setter pair
- propsId ↔ int?
-
getter/setter pair
- propsType ↔ int?
-
背包道具类型
BackpackPropsTypeEnum
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shakeConn ↔ bool?
-
true 跳蛋连接中 false 跳蛋没连接
getter/setter pair
Methods
-
copyWith(
{int? giftId, int? price, String? name, String? icon, bool? isShakeEgg, String? description, String? animation, bool? shakeConn, int? giftType, int? propsType, int? propsId, int? propsCount}) → LiveGiftModel -
getAnimationUrl(
) → String - 获取礼物动画URL
-
getGiftId(
) → int - 获取礼物ID
-
getGiftPrice(
) → int - 获取礼物价格
-
isShakeEggGift(
) → bool - 是否为跳蛋礼物
-
isShakeEggGiftConnected(
) → bool - 礼物是否支持跳蛋(礼物有跳蛋属性且跳蛋连接成功)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited