updates classes

This commit is contained in:
tom79 2017-10-20 06:54:21 +02:00
parent 25fde58655
commit abd399a2da
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,50 @@
/* Copyright 2017 Thomas Schneider
*
* This file is a part of Mastalab
*
* This program is free software; you can redistribute it and/or modify it under the terms of the
* GNU General Public License as published by the Free Software Foundation; either version 3 of the
* License, or (at your option) any later version.
*
* Mastalab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details.
*
* You should have received a copy of the GNU General Public License along with Mastalab; if not,
* see <http://www.gnu.org/licenses>. */
package fr.gouv.etalab.mastodon.client.Entities;
/**
* Created by Thomas on 20/10/2017.
*/
public class Emojis {
private String shortcode;
private String static_url;
private String url;
public String getShortcode() {
return shortcode;
}
public void setShortcode(String shortcode) {
this.shortcode = shortcode;
}
public String getStatic_url() {
return static_url;
}
public void setStatic_url(String static_url) {
this.static_url = static_url;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
}

View File

@ -51,6 +51,7 @@ public class Status implements Parcelable {
private ArrayList<Attachment> media_attachments;
private List<Status> replies;
private List<Mention> mentions;
private List<Tag> emojis;
private List<Tag> tags;
private Application application;
private String language;
@ -379,4 +380,12 @@ public class Status implements Parcelable {
public void setVisible(boolean visible) {
isVisible = visible;
}
public List<Tag> getEmojis() {
return emojis;
}
public void setEmojis(List<Tag> emojis) {
this.emojis = emojis;
}
}