Improves attachments with meta
This commit is contained in:
parent
5ca48862f5
commit
21b5ae84d7
|
@ -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){}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue