public class RedPacketMsgContent
extends com.live.immsgmodel.BaseContent
限定符和类型 | 字段和说明 |
---|---|
static android.os.Parcelable.Creator<RedPacketMsgContent> |
CREATOR
读取接口,目的是要从Parcel中构造一个实现了Parcelable的类的实例处理。
|
构造器和说明 |
---|
RedPacketMsgContent(byte[] data) |
RedPacketMsgContent(android.os.Parcel in)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
int |
describeContents() |
byte[] |
encode() |
int |
getEffect() |
int |
getmPermill() |
java.lang.String |
getmUserId() |
java.lang.String |
getmUserLogoUrl() |
java.lang.String |
getmUserNickname() |
java.lang.String |
getPacketId() |
double |
probabilityOfSend(int roomState)
计算发送概率
|
double |
probabilityOfShow(int roomState)
计算展示概率
|
void |
setEffect(int effect) |
void |
setmPermill(int mPermill) |
void |
setmUserId(java.lang.String mUserId) |
void |
setmUserLogoUrl(java.lang.String mUserLogoUrl) |
void |
setmUserNickname(java.lang.String mUserNickname) |
void |
setPacketId(java.lang.String packetId) |
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<RedPacketMsgContent> CREATOR
public RedPacketMsgContent(android.os.Parcel in)
in
- 初始化传入的 Parcel。public RedPacketMsgContent(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 getPacketId()
public void setPacketId(java.lang.String packetId)
public int getEffect()
public void setEffect(int effect)
public java.lang.String getmUserId()
public void setmUserId(java.lang.String mUserId)
public java.lang.String getmUserNickname()
public void setmUserNickname(java.lang.String mUserNickname)
public java.lang.String getmUserLogoUrl()
public void setmUserLogoUrl(java.lang.String mUserLogoUrl)
public int getmPermill()
public void setmPermill(int mPermill)
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]。