Improves attachments with meta

This commit is contained in:
stom79 2018-02-15 10:18:39 +01:00
parent 5ca48862f5
commit 21b5ae84d7
2 changed files with 12 additions and 0 deletions

View File

@ -1961,6 +1961,9 @@ public class API {
try{
attachment.setPreview_url(resobj.get("preview_url").toString());
}catch (JSONException ignore){}
try{
attachment.setMeta(resobj.get("meta").toString());
}catch (JSONException ignore){}
try{
attachment.setText_url(resobj.get("text_url").toString());
}catch (JSONException ignore){}

View File

@ -31,6 +31,7 @@ public class Attachment implements Parcelable{
private String url;
private String remote_url;
private String preview_url;
private String meta;
private String text_url;
private String description;
@ -131,4 +132,12 @@ public class Attachment implements Parcelable{
public void setDescription(String description) {
this.description = description;
}
public String getMeta() {
return meta;
}
public void setMeta(String meta) {
this.meta = meta;
}
}