jimu-decompiled/sources/com/ubt/jimu/base/entities/Package.java
2025-05-13 19:24:51 +02:00

196 lines
4.6 KiB
Java

package com.ubt.jimu.base.entities;
import com.ubt.jimu.gen.DaoSession;
import com.ubt.jimu.gen.PackageDao;
import java.io.Serializable;
import java.util.List;
import org.greenrobot.greendao.DaoException;
/* loaded from: classes.dex */
public class Package implements Serializable {
private static final long serialVersionUID = 1;
private String EAN;
private final String NEW_PACKAGE = "1";
private String UPC;
private long createTime;
private transient DaoSession daoSession;
private int displayOrder;
private long id;
private String isLatest;
private transient PackageDao myDao;
private String packageDiscription;
private String packageImage;
private String packageName;
private int played;
private List<Robot> robotList;
private String videoThumbnail;
private String videoUrl;
public Package(long j, String str, String str2, String str3, String str4, String str5, long j2, String str6, int i, String str7, String str8, int i2) {
this.id = j;
this.packageImage = str;
this.packageName = str2;
this.packageDiscription = str3;
this.EAN = str4;
this.UPC = str5;
this.createTime = j2;
this.isLatest = str6;
this.displayOrder = i;
this.videoThumbnail = str7;
this.videoUrl = str8;
this.played = i2;
}
public void __setDaoSession(DaoSession daoSession) {
this.daoSession = daoSession;
this.myDao = daoSession != null ? daoSession.q() : null;
}
public void delete() {
PackageDao packageDao = this.myDao;
if (packageDao == null) {
throw new DaoException("Entity is detached from DAO context");
}
packageDao.b((PackageDao) this);
}
public long getCreateTime() {
return this.createTime;
}
public int getDisplayOrder() {
return this.displayOrder;
}
public String getEAN() {
return this.EAN;
}
public long getId() {
return this.id;
}
public String getIsLatest() {
return this.isLatest;
}
public String getPackageDiscription() {
return this.packageDiscription;
}
public String getPackageImage() {
return this.packageImage;
}
public String getPackageName() {
return this.packageName;
}
public int getPlayed() {
return this.played;
}
public List<Robot> getRobotList() {
if (this.robotList == null) {
DaoSession daoSession = this.daoSession;
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
List<Robot> b = daoSession.s().b(this.id);
synchronized (this) {
if (this.robotList == null) {
this.robotList = b;
}
}
}
return this.robotList;
}
public String getUPC() {
return this.UPC;
}
public String getVideoThumbnail() {
return this.videoThumbnail;
}
public String getVideoUrl() {
return this.videoUrl;
}
public void refresh() {
PackageDao packageDao = this.myDao;
if (packageDao == null) {
throw new DaoException("Entity is detached from DAO context");
}
packageDao.i(this);
}
public synchronized void resetRobotList() {
this.robotList = null;
}
public void setCreateTime(long j) {
this.createTime = j;
}
public void setDisplayOrder(int i) {
this.displayOrder = i;
}
public void setEAN(String str) {
this.EAN = str;
}
public void setId(long j) {
this.id = j;
}
public void setIsLatest(String str) {
this.isLatest = str;
}
public void setPackageDiscription(String str) {
this.packageDiscription = str;
}
public void setPackageImage(String str) {
this.packageImage = str;
}
public void setPackageName(String str) {
this.packageName = str;
}
public void setPlayed(int i) {
this.played = i;
}
public void setRobotList(List<Robot> list) {
this.robotList = list;
}
public void setUPC(String str) {
this.UPC = str;
}
public void setVideoThumbnail(String str) {
this.videoThumbnail = str;
}
public void setVideoUrl(String str) {
this.videoUrl = str;
}
public void update() {
PackageDao packageDao = this.myDao;
if (packageDao == null) {
throw new DaoException("Entity is detached from DAO context");
}
packageDao.j(this);
}
public Package() {
}
}