public class ViewMessage {
//...
@SerializedName("attach")
private String[][] attach;
private boolean hasAttaches(){
return attach != null && attach.length > 0;
}
public String[] getAttachesNames(){
String[] names = new String[attach.length];
for (int i = 0; i < attach.length; i++) {
names[i] = attach[i][0];
}
return names;
}
// и другие нужные методы
//...
}
ViewMessage message = //...
message.getType();
message.getBody();
message.hasAttaches();
message.getAttachesNames();
// и т.д.