我的问题是如何在Inner Json对象类中实现Logansquare自定义TypeConverter类。
这是我的模型课:
class CommunicationParser{
@JsonField
public String MSG;
@JsonField
public int DATA_ID;
@JsonField
public ArrayList<Records> RECORDS;
@JsonObject
public static class Records {
@JsonField
public String REC1;
@JsonField
public String REC2;
@JsonField
public int REC_VALUE;
@JsonField // Error occur when apply annotation
public communication COMMUNICATIONACTION; //MAKE ERROR IN THIS LINE
}
@JsonObject
public static class communication {
@JsonField
public PrimaryAction PRIMARYACTION;
@JsonField
public ArrayList<SecondaryAction> SECONDARYACTION;
}
@JsonObject
public static class PrimaryAction {
@JsonField
public int ID;
@JsonField
public String TITLE;
}
@JsonObject
public static class SecondaryAction {
@JsonField
public int ID;
@JsonField
public String TITLE;
}
}
如何在Inner Json对象类中实现Logansquare自定义TypeConverter类?请给我一个解决方案。
预先感谢