public class LevelUpMsgContent
extends com.live.immsgmodel.BaseContent
限定符和类型 | 字段和说明 |
---|---|
static android.os.Parcelable.Creator<LevelUpMsgContent> |
CREATOR |
构造器和说明 |
---|
LevelUpMsgContent(byte[] data) |
LevelUpMsgContent(android.os.Parcel in) |
LevelUpMsgContent(java.lang.String nickName,
java.lang.String uid,
int level,
java.lang.String levelRight,
java.lang.String avatar) |
限定符和类型 | 方法和说明 |
---|---|
int |
describeContents() |
byte[] |
encode() |
java.lang.String |
getAvatar() |
int |
getLevel() |
java.lang.String |
getLevelRight() |
java.lang.String |
getNickName() |
java.lang.String |
getUid() |
double |
probabilityOfSend(int roomState)
计算发送概率
|
double |
probabilityOfShow(int roomState)
计算展示概率
|
void |
setAvatar(java.lang.String avatar) |
void |
setLevel(int level) |
void |
setLevelRight(java.lang.String levelRight) |
void |
setNickName(java.lang.String nickName) |
void |
setUid(java.lang.String uid) |
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<LevelUpMsgContent> CREATOR
public LevelUpMsgContent(android.os.Parcel in)
public LevelUpMsgContent(java.lang.String nickName, java.lang.String uid, int level, java.lang.String levelRight, java.lang.String avatar)
public LevelUpMsgContent(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 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 getLevel()
public void setLevel(int level)
public java.lang.String getNickName()
public void setNickName(java.lang.String nickName)
public java.lang.String getUid()
public void setUid(java.lang.String uid)
public java.lang.String getLevelRight()
public void setLevelRight(java.lang.String levelRight)
public java.lang.String getAvatar()
public void setAvatar(java.lang.String avatar)