[Modify]修改配置
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
package com.yizhuan.xchat_android_core.family.bean;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import io.realm.RealmObject;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* @author jack
|
||||
* @Description
|
||||
* @Date 2018/5/24
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class FamilyInfoInUserInfo extends RealmObject implements Serializable {
|
||||
|
||||
private String familyId;
|
||||
private String familyName;
|
||||
private String familyIcon;
|
||||
|
||||
private String memberCount;//家族成员数
|
||||
|
||||
/**
|
||||
* 转换成 FamilyInfo
|
||||
* @return
|
||||
*/
|
||||
public FamilyInfo toFamilyInfo(){
|
||||
String json = new Gson().toJson(this);
|
||||
return new Gson().fromJson(json,FamilyInfo.class);
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user