49 lines
1.1 KiB
Java
49 lines
1.1 KiB
Java
package com.ubt.jimu.controller.data.widget;
|
|
|
|
import android.content.Context;
|
|
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
|
|
import com.ubt.jimu.controller.data.config.WidgetConfig;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class MoveBaseData<C extends WidgetConfig> extends ItemBaseData {
|
|
|
|
@XStreamAsAttribute
|
|
private String configID;
|
|
|
|
public MoveBaseData() {
|
|
}
|
|
|
|
public abstract C getConfig();
|
|
|
|
public String getConfigID() {
|
|
return this.configID;
|
|
}
|
|
|
|
public abstract String getShowName(Context context);
|
|
|
|
@Override // com.ubt.jimu.controller.data.widget.ItemBaseData
|
|
public boolean isOfficial() {
|
|
return getConfig() != null && getConfig().getConfigType() == 1;
|
|
}
|
|
|
|
public void setConfig(C c) {
|
|
this.configID = c.getConfigID();
|
|
}
|
|
|
|
public void setConfigID(String str) {
|
|
this.configID = str;
|
|
}
|
|
|
|
public void updateConfig(C c) {
|
|
setConfig(c);
|
|
}
|
|
|
|
public MoveBaseData(String str) {
|
|
super(str);
|
|
}
|
|
|
|
public MoveBaseData(String str, float f, float f2) {
|
|
super(str, f, f2);
|
|
}
|
|
}
|