完成美颜UI 90%
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
package com.yunbao.faceunity.entity;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.yunbao.faceunity.data.FaceParam;
|
||||
|
||||
/**
|
||||
* 道具
|
||||
* @property iconId Int 图标
|
||||
* @property path String 道具路径
|
||||
* @property descId Int 道具提示
|
||||
* @constructor
|
||||
*/
|
||||
public class PropBean extends BaseBean {
|
||||
private int iconId;
|
||||
private String path;
|
||||
private int descId;
|
||||
|
||||
public PropBean(int iconId, String path) {
|
||||
this.iconId = iconId;
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
public PropBean(int iconId, String path, int descId) {
|
||||
this.iconId = iconId;
|
||||
this.path = path;
|
||||
this.descId = descId;
|
||||
}
|
||||
|
||||
public int getIconId() {
|
||||
return iconId;
|
||||
}
|
||||
|
||||
public void setIconId(int iconId) {
|
||||
this.iconId = iconId;
|
||||
}
|
||||
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
public void setPath(String path) {
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
public int getDescId() {
|
||||
return descId;
|
||||
}
|
||||
|
||||
public void setDescId(int descId) {
|
||||
this.descId = descId;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public String getKey() {
|
||||
return path;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDesRes() {
|
||||
return descId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getImageRes() {
|
||||
return iconId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBeanType() {
|
||||
return FaceParam.FACE_BIG_HEAD;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public ModelAttributeData getModelAttributeData() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user