public class MaskGameMaskMsgContent
extends com.live.immsgmodel.BaseContent
限定符和类型 | 字段和说明 |
---|---|
static android.os.Parcelable.Creator<MaskGameMaskMsgContent> |
CREATOR
读取接口,目的是要从Parcel中构造一个实现了Parcelable的类的实例处理。
|
static int |
TYPE_DELAY |
static int |
TYPE_LOCK |
static int |
TYPE_UNLOCK |
构造器和说明 |
---|
MaskGameMaskMsgContent() |
MaskGameMaskMsgContent(byte[] data) |
MaskGameMaskMsgContent(android.os.Parcel in)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
byte[] |
encode() |
int |
getLockTime() |
int |
getLockType() |
int |
getMaskId() |
int |
getMaskTime1() |
int |
getMaskTime2() |
int |
getMaskTime3() |
double |
probabilityOfSend(int roomState)
计算发送概率
|
double |
probabilityOfShow(int roomState)
计算展示概率
|
void |
setLockTime(int lockTime) |
void |
setLockType(int lockType) |
void |
setMaskId(int maskId) |
void |
setMaskTime1(int maskTime1) |
void |
setMaskTime2(int maskTime2) |
void |
setMaskTime3(int maskTime3) |
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_UNLOCK
public static final int TYPE_LOCK
public static final int TYPE_DELAY
public static final android.os.Parcelable.Creator<MaskGameMaskMsgContent> CREATOR
public MaskGameMaskMsgContent()
public MaskGameMaskMsgContent(byte[] data)
public MaskGameMaskMsgContent(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 getLockType()
public void setLockType(int lockType)
public int getMaskId()
public void setMaskId(int maskId)
public int getLockTime()
public void setLockTime(int lockTime)
public int getMaskTime1()
public void setMaskTime1(int maskTime1)
public int getMaskTime2()
public void setMaskTime2(int maskTime2)
public int getMaskTime3()
public void setMaskTime3(int maskTime3)
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]。