public class SystemMsgContent
extends com.live.immsgmodel.BaseContent
限定符和类型 | 字段和说明 |
---|---|
static android.os.Parcelable.Creator<SystemMsgContent> |
CREATOR
读取接口,目的是要从Parcel中构造一个实现了Parcelable的类的实例处理。
|
static int |
SYSMSG_SHOW_BOTH |
static int |
SYSMSG_SHOW_MSG |
static int |
SYSMSG_SHOW_TOP |
构造器和说明 |
---|
SystemMsgContent(byte[] data) |
SystemMsgContent(android.os.Parcel in)
构造函数。
|
SystemMsgContent(java.lang.String msg) |
SystemMsgContent(java.lang.String msg,
int showSeat) |
SystemMsgContent(java.lang.String msg,
java.lang.String uid,
int rank) |
SystemMsgContent(java.lang.String msg,
java.lang.String vid,
java.lang.String uid) |
限定符和类型 | 方法和说明 |
---|---|
int |
describeContents() |
byte[] |
encode() |
int |
getIsWork() |
void |
getIsWork(int isWork) |
java.lang.String |
getJumpVid() |
LeaderBoardInfo |
getLeaderBoardInfo() |
java.lang.String |
getLiveId() |
java.lang.String |
getMessage() |
int |
getMsgType() |
int |
getRank() |
int |
getShowSeat() |
java.lang.String |
getUserId() |
double |
probabilityOfSend(int roomState)
计算发送概率
|
double |
probabilityOfShow(int roomState)
计算展示概率
|
void |
setShowSeat(int showSeat) |
java.lang.String |
toString() |
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 int SYSMSG_SHOW_TOP
public static final int SYSMSG_SHOW_BOTH
public static final int SYSMSG_SHOW_MSG
public static final android.os.Parcelable.Creator<SystemMsgContent> CREATOR
public SystemMsgContent(android.os.Parcel in)
in
- 初始化传入的 Parcel。public SystemMsgContent(java.lang.String msg, java.lang.String vid, java.lang.String uid)
public SystemMsgContent(java.lang.String msg, int showSeat)
public SystemMsgContent(java.lang.String msg)
public SystemMsgContent(java.lang.String msg, java.lang.String uid, int rank)
public SystemMsgContent(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 getMessage()
public java.lang.String getLiveId()
public java.lang.String getUserId()
public int getShowSeat()
public void getIsWork(int isWork)
public int getIsWork()
public void setShowSeat(int showSeat)
public int getMsgType()
public LeaderBoardInfo getLeaderBoardInfo()
public java.lang.String getJumpVid()
public int getRank()
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 java.lang.String toString()
toString
在类中 java.lang.Object