[Modify]寻爱之旅消耗钻石改为可配置

This commit is contained in:
wushaocheng
2023-06-07 15:21:31 +08:00
parent bcf486e630
commit 7515f50095
9 changed files with 41 additions and 6 deletions

View File

@@ -9,6 +9,7 @@ public class FindLoveSwitchVo implements Parcelable, Serializable {
private boolean open;
private int openLevel;
private int sendMsgLevel;
private double price;
public boolean isOpen() {
return open;
@@ -34,10 +35,19 @@ public class FindLoveSwitchVo implements Parcelable, Serializable {
this.sendMsgLevel = sendMsgLevel;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
protected FindLoveSwitchVo(Parcel in) {
open = in.readByte() != 0;
openLevel = in.readInt();
sendMsgLevel = in.readInt();
price = in.readDouble();
}
@Override
@@ -45,6 +55,7 @@ public class FindLoveSwitchVo implements Parcelable, Serializable {
dest.writeByte((byte) (open ? 1 : 0));
dest.writeInt(openLevel);
dest.writeInt(sendMsgLevel);
dest.writeDouble(price);
}
public static final Creator<FindLoveSwitchVo> CREATOR = new Creator<FindLoveSwitchVo>() {
@@ -64,13 +75,13 @@ public class FindLoveSwitchVo implements Parcelable, Serializable {
return 0;
}
@Override
public String toString() {
return "BoxInfo{" +
"open=" + open +
", openLevel=" + openLevel +
", sendMsgLevel='" + sendMsgLevel + '\'' +
", price='" + price + '\'' +
'}';
}
}