145 lines
3.8 KiB
Java
145 lines
3.8 KiB
Java
package com.ubt.jimu.base.entities;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class RobotLite implements Parcelable {
|
|
public static final Parcelable.Creator<RobotLite> CREATOR = new Parcelable.Creator<RobotLite>() { // from class: com.ubt.jimu.base.entities.RobotLite.1
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public RobotLite createFromParcel(Parcel parcel) {
|
|
return new RobotLite(parcel);
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public RobotLite[] newArray(int i) {
|
|
return new RobotLite[i];
|
|
}
|
|
};
|
|
public static final int CUSTOM_ROBOT = 2;
|
|
public static final int OFFICIAL_ROBOT = 1;
|
|
private boolean isDiyCanEdit;
|
|
private String modelId;
|
|
private String modelName;
|
|
private String picPath;
|
|
private long serveId;
|
|
private int type;
|
|
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface RobotType {
|
|
}
|
|
|
|
public RobotLite() {
|
|
this.isDiyCanEdit = false;
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
public String getModelId() {
|
|
return this.modelId;
|
|
}
|
|
|
|
public String getModelName() {
|
|
return this.modelName;
|
|
}
|
|
|
|
public String getPicPath() {
|
|
return this.picPath;
|
|
}
|
|
|
|
public long getServeId() {
|
|
return this.serveId;
|
|
}
|
|
|
|
public int getType() {
|
|
return this.type;
|
|
}
|
|
|
|
public boolean isDiyCanEdit() {
|
|
return this.isDiyCanEdit;
|
|
}
|
|
|
|
public boolean isOfficial() {
|
|
return this.type == 1;
|
|
}
|
|
|
|
public void setDiyCanEdit(boolean z) {
|
|
this.isDiyCanEdit = z;
|
|
}
|
|
|
|
public void setModelId(String str) {
|
|
this.modelId = str;
|
|
}
|
|
|
|
public void setModelName(String str) {
|
|
this.modelName = str;
|
|
}
|
|
|
|
public void setPicPath(String str) {
|
|
this.picPath = str;
|
|
}
|
|
|
|
public void setServeId(long j) {
|
|
this.serveId = j;
|
|
}
|
|
|
|
public void setType(int i) {
|
|
this.type = i;
|
|
}
|
|
|
|
public String toString() {
|
|
return "RobotLite{type=" + this.type + ", serveId=" + this.serveId + ", modelId='" + this.modelId + "', picPath='" + this.picPath + "', modelName='" + this.modelName + "', isDiyCanEdit=" + this.isDiyCanEdit + '}';
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
parcel.writeInt(this.type);
|
|
parcel.writeLong(this.serveId);
|
|
parcel.writeString(this.modelId);
|
|
parcel.writeString(this.picPath);
|
|
parcel.writeString(this.modelName);
|
|
parcel.writeByte(this.isDiyCanEdit ? (byte) 1 : (byte) 0);
|
|
}
|
|
|
|
public RobotLite(int i, String str) {
|
|
this.isDiyCanEdit = false;
|
|
this.type = i;
|
|
this.modelId = str;
|
|
}
|
|
|
|
public RobotLite(String str, String str2, String str3, boolean z, boolean z2) {
|
|
this.isDiyCanEdit = false;
|
|
setModelId(str);
|
|
if (z) {
|
|
setType(2);
|
|
} else {
|
|
setType(1);
|
|
}
|
|
setPicPath(str3);
|
|
setModelName(str2);
|
|
setDiyCanEdit(z2);
|
|
}
|
|
|
|
public RobotLite(long j, String str, String str2, String str3, boolean z, boolean z2) {
|
|
this(str, str2, str3, z, z2);
|
|
setServeId(j);
|
|
}
|
|
|
|
protected RobotLite(Parcel parcel) {
|
|
this.isDiyCanEdit = false;
|
|
this.type = parcel.readInt();
|
|
this.serveId = parcel.readLong();
|
|
this.modelId = parcel.readString();
|
|
this.picPath = parcel.readString();
|
|
this.modelName = parcel.readString();
|
|
this.isDiyCanEdit = parcel.readByte() != 0;
|
|
}
|
|
}
|