public class BonusMsgContent
extends com.live.immsgmodel.BaseContent
限定符和类型 | 字段和说明 |
---|---|
static android.os.Parcelable.Creator<BonusMsgContent> |
CREATOR
读取接口,目的是要从Parcel中构造一个实现了Parcelable的类的实例处理。
|
构造器和说明 |
---|
BonusMsgContent(byte[] data) |
BonusMsgContent(android.os.Parcel in)
构造函数。
|
BonusMsgContent(java.lang.String uid,
java.lang.String nickname,
java.lang.String logo,
int price,
java.lang.String bonusId,
int permill,
java.lang.String coin_desc,
int coin_type,
java.lang.String redpkt_url) |
限定符和类型 | 方法和说明 |
---|---|
int |
describeContents() |
byte[] |
encode() |
java.lang.String |
getBonusId() |
java.lang.String |
getCoin_desc() |
int |
getCoin_type() |
int |
getGold() |
int |
getPermill() |
java.lang.String |
getRedpkt_url() |
java.lang.String |
getUserId() |
java.lang.String |
getUserLogoUrl() |
java.lang.String |
getUserNickname() |
boolean |
isNeedAddMessage() |
boolean |
isNewChest() |
double |
probabilityOfSend(int roomState)
计算发送概率
|
double |
probabilityOfShow(int roomState)
计算展示概率
|
void |
setCoin_desc(java.lang.String coin_desc) |
void |
setCoin_type(int coin_type) |
void |
setIsNeedAddMessage(boolean isNeedAddMessage) |
void |
setNewChest(boolean newChest) |
void |
setRedpkt_url(java.lang.String redpkt_url) |
void |
writeToParcel(android.os.Parcel parcel,
int i) |
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 android.os.Parcelable.Creator<BonusMsgContent> CREATOR
public BonusMsgContent(android.os.Parcel in)
in
- 初始化传入的 Parcel。public BonusMsgContent(java.lang.String uid, java.lang.String nickname, java.lang.String logo, int price, java.lang.String bonusId, int permill, java.lang.String coin_desc, int coin_type, java.lang.String redpkt_url)
public BonusMsgContent(byte[] data)
public byte[] encode()
encode
在类中 com.live.immsgmodel.BaseContent
public int describeContents()
describeContents
在接口中 android.os.Parcelable
describeContents
在类中 com.live.immsgmodel.BaseContent
public void writeToParcel(android.os.Parcel parcel, int i)
writeToParcel
在接口中 android.os.Parcelable
writeToParcel
在类中 com.live.immsgmodel.BaseContent
public java.lang.String getUserId()
public java.lang.String getUserNickname()
public java.lang.String getUserLogoUrl()
public int getGold()
public java.lang.String getBonusId()
public int getPermill()
public boolean isNeedAddMessage()
public void setIsNeedAddMessage(boolean isNeedAddMessage)
public boolean isNewChest()
public void setNewChest(boolean newChest)
public java.lang.String getCoin_desc()
public java.lang.String getRedpkt_url()
public void setRedpkt_url(java.lang.String redpkt_url)
public void setCoin_desc(java.lang.String coin_desc)
public int getCoin_type()
public void setCoin_type(int coin_type)
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]。