public class MaskGameRewardMsgContent
extends com.live.immsgmodel.BaseContent
限定符和类型 | 字段和说明 |
---|---|
static int |
CONTENT_TYPE_CARDGAME1 |
static int |
CONTENT_TYPE_CARDGAME2 |
static int |
CONTENT_TYPE_CARDGAME3 |
static int |
CONTENT_TYPE_NORMAL |
static android.os.Parcelable.Creator<MaskGameRewardMsgContent> |
CREATOR
读取接口,目的是要从Parcel中构造一个实现了Parcelable的类的实例处理。
|
static int |
TYPE_EXP |
static int |
TYPE_GOLD |
static int |
TYPE_STAR |
构造器和说明 |
---|
MaskGameRewardMsgContent() |
MaskGameRewardMsgContent(byte[] data) |
MaskGameRewardMsgContent(android.os.Parcel in)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
byte[] |
encode() |
int |
getContentType() |
java.lang.String |
getHostId() |
int |
getIsBig() |
java.lang.String |
getLogo() |
int |
getRewardType() |
int |
getRewardValue() |
int |
getTotalValue() |
java.lang.String |
getUid() |
java.lang.String |
getUname() |
double |
probabilityOfSend(int roomState)
计算发送概率
|
double |
probabilityOfShow(int roomState)
计算展示概率
|
void |
setContentType(int contentType) |
void |
setHostId(java.lang.String hostId) |
void |
setIsBig(int isBig) |
void |
setLogo(java.lang.String logo) |
void |
setRewardType(int rewardType) |
void |
setRewardValue(int rewardValue) |
void |
setTotalValue(int totalValue) |
void |
setUid(java.lang.String uid) |
void |
setUname(java.lang.String uname) |
void |
writeToParcel(android.os.Parcel parcel,
int i) |
describeContents, getAdmin, getCommonData, getCUUIDFromJson, getIsMine, isNewUser, readCommonDataFromJson, readCommonDataFromParcel, setAdmin, setCommonData, setFamilyBadgeUrl, setFanLevel, setGuardType, setIdScore, setIsMine, setIsNewUser, setPrerogative, setRandomCommonDataForTest, setRewardRight, setRewardRightByIndex, setTagBean, setUserId, setVipLevelInfo, setWatchSource, setWatchSource2, writeCommonDataToJson, writeCommonDataToParcel
public static final int TYPE_EXP
public static final int TYPE_STAR
public static final int TYPE_GOLD
public static final int CONTENT_TYPE_NORMAL
public static final int CONTENT_TYPE_CARDGAME1
public static final int CONTENT_TYPE_CARDGAME2
public static final int CONTENT_TYPE_CARDGAME3
public static final android.os.Parcelable.Creator<MaskGameRewardMsgContent> CREATOR
public MaskGameRewardMsgContent()
public MaskGameRewardMsgContent(byte[] data)
public MaskGameRewardMsgContent(android.os.Parcel in)
in
- 初始化传入的 Parcel。public byte[] encode()
encode
在类中 com.live.immsgmodel.BaseContent
public void writeToParcel(android.os.Parcel parcel, int i)
writeToParcel
在接口中 android.os.Parcelable
writeToParcel
在类中 com.live.immsgmodel.BaseContent
public int getRewardValue()
public void setRewardValue(int rewardValue)
public int getRewardType()
public void setRewardType(int rewardType)
public int getTotalValue()
public void setTotalValue(int totalValue)
public java.lang.String getHostId()
public void setHostId(java.lang.String hostId)
public int getIsBig()
public void setIsBig(int isBig)
public java.lang.String getUid()
public void setUid(java.lang.String uid)
public java.lang.String getUname()
public void setUname(java.lang.String uname)
public java.lang.String getLogo()
public void setLogo(java.lang.String logo)
public double probabilityOfSend(int roomState)
com.live.immsgmodel.IRoomStateCallback
probabilityOfSend
在接口中 com.live.immsgmodel.IRoomStateCallback
probabilityOfSend
在类中 com.live.immsgmodel.BaseContent
roomState
- 精简模式。roomState=0时,精简模式关闭;roomState取值[0, 10000]。public double probabilityOfShow(int roomState)
com.live.immsgmodel.IRoomStateCallback
probabilityOfShow
在接口中 com.live.immsgmodel.IRoomStateCallback
probabilityOfShow
在类中 com.live.immsgmodel.BaseContent
roomState
- 精简模式。roomState=0时,精简模式关闭;roomState取值[0, 10000]。public int getContentType()
public void setContentType(int contentType)