public class FirstGiftUserMsgContent
extends com.live.immsgmodel.BaseContent
限定符和类型 | 字段和说明 |
---|---|
static android.os.Parcelable.Creator<FirstGiftUserMsgContent> |
CREATOR |
static int |
TYPE_ENTER |
static int |
TYPE_GIFT |
构造器和说明 |
---|
FirstGiftUserMsgContent() |
FirstGiftUserMsgContent(byte[] data) |
FirstGiftUserMsgContent(int msgType,
int giftCount,
java.lang.String userId,
java.lang.String userName,
java.lang.String userLogo) |
FirstGiftUserMsgContent(android.os.Parcel in) |
限定符和类型 | 方法和说明 |
---|---|
int |
describeContents() |
byte[] |
encode() |
int |
getGiftCount() |
int |
getMsgType() |
java.lang.String |
getUserId() |
java.lang.String |
getUserLogo() |
java.lang.String |
getUserName() |
double |
probabilityOfSend(int roomState)
计算发送概率
|
double |
probabilityOfShow(int roomState)
计算展示概率
|
void |
setGiftCount(int giftCount) |
void |
setMsgType(int msgType) |
void |
setUserId(java.lang.String userId) |
void |
setUserLogo(java.lang.String userLogo) |
void |
setUserName(java.lang.String userName) |
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, setVipLevelInfo, setWatchSource, setWatchSource2, writeCommonDataToJson, writeCommonDataToParcel
public static final int TYPE_ENTER
public static final int TYPE_GIFT
public static final android.os.Parcelable.Creator<FirstGiftUserMsgContent> CREATOR
public FirstGiftUserMsgContent(android.os.Parcel in)
public FirstGiftUserMsgContent()
public FirstGiftUserMsgContent(int msgType, int giftCount, java.lang.String userId, java.lang.String userName, java.lang.String userLogo)
public FirstGiftUserMsgContent(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 getMsgType()
public void setMsgType(int msgType)
public int getGiftCount()
public void setGiftCount(int giftCount)
public java.lang.String getUserId()
public void setUserId(java.lang.String userId)
setUserId
在类中 com.live.immsgmodel.BaseContent
public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
public java.lang.String getUserLogo()
public void setUserLogo(java.lang.String userLogo)