新增 model
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
package com.chwl.core.room.bean;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class RightBottomIconConfig implements Parcelable, Serializable {
|
||||
|
||||
int skipType;
|
||||
private String skipUrl;
|
||||
|
||||
private String icon2Url;
|
||||
|
||||
private String icon1Url;
|
||||
|
||||
private String reserve;
|
||||
|
||||
protected RightBottomIconConfig(Parcel in) {
|
||||
skipType = in.readInt();
|
||||
skipUrl = in.readString();
|
||||
icon2Url = in.readString();
|
||||
icon1Url = in.readString();
|
||||
reserve = in.readString();
|
||||
}
|
||||
|
||||
public int getSkipType() {
|
||||
return skipType;
|
||||
}
|
||||
|
||||
public String getIcon1Url() {
|
||||
return icon1Url;
|
||||
}
|
||||
|
||||
public String getIcon2Url() {
|
||||
return icon2Url;
|
||||
}
|
||||
|
||||
public String getReserve() {
|
||||
return reserve;
|
||||
}
|
||||
|
||||
public String getSkipUrl() {
|
||||
return skipUrl;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
dest.writeInt(skipType);
|
||||
dest.writeString(skipUrl);
|
||||
dest.writeString(icon2Url);
|
||||
dest.writeString(icon1Url);
|
||||
dest.writeString(reserve);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static final Creator<RightBottomIconConfig> CREATOR = new Creator<RightBottomIconConfig>() {
|
||||
@Override
|
||||
public RightBottomIconConfig createFromParcel(Parcel in) {
|
||||
return new RightBottomIconConfig(in);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RightBottomIconConfig[] newArray(int size) {
|
||||
return new RightBottomIconConfig[size];
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -160,6 +160,8 @@ public class RoomInfo implements Parcelable,Serializable {
|
||||
// 总流水
|
||||
private double serialValue;
|
||||
|
||||
private RightBottomIconConfig rightBottomIconConfig;
|
||||
|
||||
protected RoomInfo(Parcel in) {
|
||||
uid = in.readLong();
|
||||
officeUser = in.readInt();
|
||||
@@ -192,6 +194,7 @@ public class RoomInfo implements Parcelable,Serializable {
|
||||
isOpenKTV = in.readByte() != 0;
|
||||
isOpenGame = in.readByte() != 0;
|
||||
boxSwitchVo = in.readParcelable(BoxSwitchVo.class.getClassLoader());
|
||||
rightBottomIconConfig = in.readParcelable(RightBottomIconConfig.class.getClassLoader());
|
||||
findLoveDrawSwitchVo = in.readParcelable(FindLoveSwitchVo.class.getClassLoader());
|
||||
singingMusicName = in.readString();
|
||||
limitType = in.readString();
|
||||
@@ -258,6 +261,7 @@ public class RoomInfo implements Parcelable,Serializable {
|
||||
dest.writeByte((byte) (isOpenKTV ? 1 : 0));
|
||||
dest.writeByte((byte) (isOpenGame ? 1 : 0));
|
||||
dest.writeParcelable(boxSwitchVo, flags);
|
||||
dest.writeParcelable(rightBottomIconConfig, flags);
|
||||
dest.writeParcelable(findLoveDrawSwitchVo, flags);
|
||||
dest.writeString(singingMusicName);
|
||||
dest.writeString(limitType);
|
||||
|
||||
Reference in New Issue
Block a user