2017-06-03 18:18:27 +02:00
|
|
|
package fr.gouv.etalab.mastodon.client;
|
2017-06-11 14:28:29 +02:00
|
|
|
/* Copyright 2017 Thomas Schneider
|
|
|
|
*
|
2017-07-10 10:33:24 +02:00
|
|
|
* This file is a part of Mastalab
|
2017-06-11 14:28:29 +02:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
2017-07-10 10:33:24 +02:00
|
|
|
* Mastalab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
2017-06-11 14:28:29 +02:00
|
|
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
|
|
* Public License for more details.
|
|
|
|
*
|
2017-08-04 11:11:27 +02:00
|
|
|
* You should have received a copy of the GNU General Public License along with Mastalab; if not,
|
2017-06-11 14:28:29 +02:00
|
|
|
* see <http://www.gnu.org/licenses>. */
|
2019-01-19 19:41:55 +01:00
|
|
|
|
2017-06-03 18:18:27 +02:00
|
|
|
import android.content.Context;
|
2019-01-19 19:41:55 +01:00
|
|
|
|
2017-06-03 18:18:27 +02:00
|
|
|
import java.util.List;
|
2019-01-19 19:41:55 +01:00
|
|
|
|
|
|
|
import fr.gouv.etalab.mastodon.client.Entities.Account;
|
|
|
|
import fr.gouv.etalab.mastodon.client.Entities.Conversation;
|
|
|
|
import fr.gouv.etalab.mastodon.client.Entities.Emojis;
|
2017-06-03 18:18:27 +02:00
|
|
|
import fr.gouv.etalab.mastodon.client.Entities.Error;
|
2019-01-19 19:41:55 +01:00
|
|
|
import fr.gouv.etalab.mastodon.client.Entities.Filters;
|
|
|
|
import fr.gouv.etalab.mastodon.client.Entities.HowToVideo;
|
|
|
|
import fr.gouv.etalab.mastodon.client.Entities.Instance;
|
|
|
|
import fr.gouv.etalab.mastodon.client.Entities.Notification;
|
|
|
|
import fr.gouv.etalab.mastodon.client.Entities.Peertube;
|
|
|
|
import fr.gouv.etalab.mastodon.client.Entities.Relationship;
|
|
|
|
import fr.gouv.etalab.mastodon.client.Entities.Status;
|
|
|
|
import fr.gouv.etalab.mastodon.client.Entities.StoredStatus;
|
2017-06-03 18:18:27 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by Thomas on 03/06/2017.
|
|
|
|
* Hydrate response from the API
|
|
|
|
*/
|
|
|
|
|
|
|
|
public class APIResponse {
|
|
|
|
|
|
|
|
private List<Account> accounts = null;
|
|
|
|
private List<Status> statuses = null;
|
|
|
|
private List<Context> contexts = null;
|
2018-10-29 15:49:13 +01:00
|
|
|
private List<Conversation> conversations = null;
|
2017-06-03 18:18:27 +02:00
|
|
|
private List<Notification> notifications = null;
|
2017-09-17 11:50:00 +02:00
|
|
|
private List<Relationship> relationships = null;
|
2018-09-29 09:58:46 +02:00
|
|
|
private List<HowToVideo> howToVideos = null;
|
2018-10-07 10:45:34 +02:00
|
|
|
private List<Peertube> peertubes = null;
|
2018-09-05 17:52:13 +02:00
|
|
|
private List<Filters> filters = null;
|
2018-09-26 18:30:08 +02:00
|
|
|
private List<String> domains = null;
|
2017-12-13 15:55:50 +01:00
|
|
|
private List<fr.gouv.etalab.mastodon.client.Entities.List> lists = null;
|
2017-11-24 07:13:30 +01:00
|
|
|
private List<Emojis> emojis = null;
|
2017-06-03 18:18:27 +02:00
|
|
|
private fr.gouv.etalab.mastodon.client.Entities.Error error = null;
|
|
|
|
private String since_id, max_id;
|
2017-06-05 11:57:02 +02:00
|
|
|
private Instance instance;
|
2019-01-19 19:41:55 +01:00
|
|
|
private List<StoredStatus> storedStatuses;
|
2017-06-03 18:18:27 +02:00
|
|
|
public List<Account> getAccounts() {
|
|
|
|
return accounts;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAccounts(List<Account> accounts) {
|
|
|
|
this.accounts = accounts;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<Status> getStatuses() {
|
|
|
|
return statuses;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setStatuses(List<Status> statuses) {
|
|
|
|
this.statuses = statuses;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<Context> getContexts() {
|
|
|
|
return contexts;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setContexts(List<Context> contexts) {
|
|
|
|
this.contexts = contexts;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<Notification> getNotifications() {
|
|
|
|
return notifications;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setNotifications(List<Notification> notifications) {
|
|
|
|
this.notifications = notifications;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Error getError() {
|
|
|
|
return error;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setError(Error error) {
|
|
|
|
this.error = error;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getMax_id() {
|
|
|
|
return max_id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setMax_id(String max_id) {
|
|
|
|
this.max_id = max_id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getSince_id() {
|
|
|
|
return since_id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setSince_id(String since_id) {
|
|
|
|
this.since_id = since_id;
|
|
|
|
}
|
2017-06-05 11:57:02 +02:00
|
|
|
|
|
|
|
public Instance getInstance() {
|
|
|
|
return instance;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setInstance(Instance instance) {
|
|
|
|
this.instance = instance;
|
|
|
|
}
|
2017-09-17 11:50:00 +02:00
|
|
|
|
|
|
|
public List<Relationship> getRelationships() {
|
|
|
|
return relationships;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setRelationships(List<Relationship> relationships) {
|
|
|
|
this.relationships = relationships;
|
|
|
|
}
|
2017-11-24 07:13:30 +01:00
|
|
|
|
|
|
|
public List<Emojis> getEmojis() {
|
|
|
|
return emojis;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setEmojis(List<Emojis> emojis) {
|
|
|
|
this.emojis = emojis;
|
|
|
|
}
|
2017-12-13 15:55:50 +01:00
|
|
|
|
|
|
|
public List<fr.gouv.etalab.mastodon.client.Entities.List> getLists() {
|
|
|
|
return lists;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setLists(List<fr.gouv.etalab.mastodon.client.Entities.List> lists) {
|
|
|
|
this.lists = lists;
|
|
|
|
}
|
2018-09-05 17:52:13 +02:00
|
|
|
|
|
|
|
public List<Filters> getFilters() {
|
|
|
|
return filters;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setFilters(List<Filters> filters) {
|
|
|
|
this.filters = filters;
|
|
|
|
}
|
2018-09-26 18:30:08 +02:00
|
|
|
|
|
|
|
public List<String> getDomains() {
|
|
|
|
return domains;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setDomains(List<String> domains) {
|
|
|
|
this.domains = domains;
|
|
|
|
}
|
2018-09-29 09:58:46 +02:00
|
|
|
|
|
|
|
public List<HowToVideo> getHowToVideos() {
|
|
|
|
return howToVideos;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setHowToVideos(List<HowToVideo> howToVideos) {
|
|
|
|
this.howToVideos = howToVideos;
|
|
|
|
}
|
2018-10-07 10:45:34 +02:00
|
|
|
|
|
|
|
public List<Peertube> getPeertubes() {
|
|
|
|
return peertubes;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setPeertubes(List<Peertube> peertubes) {
|
|
|
|
this.peertubes = peertubes;
|
|
|
|
}
|
2018-10-29 15:49:13 +01:00
|
|
|
|
|
|
|
public List<Conversation> getConversations() {
|
|
|
|
return conversations;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setConversations(List<Conversation> conversations) {
|
|
|
|
this.conversations = conversations;
|
|
|
|
}
|
2019-01-19 19:41:55 +01:00
|
|
|
|
|
|
|
public List<StoredStatus> getStoredStatuses() {
|
|
|
|
return storedStatuses;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setStoredStatuses(List<StoredStatus> storedStatuses) {
|
|
|
|
this.storedStatuses = storedStatuses;
|
|
|
|
}
|
2017-06-03 18:18:27 +02:00
|
|
|
}
|