package fr.gouv.etalab.mastodon.client; /* 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 . */ import android.content.Context; import java.util.List; import fr.gouv.etalab.mastodon.client.Entities.Account; import fr.gouv.etalab.mastodon.client.Entities.Conversation; import fr.gouv.etalab.mastodon.client.Entities.Emojis; import fr.gouv.etalab.mastodon.client.Entities.Error; 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; /** * Created by Thomas on 03/06/2017. * Hydrate response from the API */ public class APIResponse { private List accounts = null; private List statuses = null; private List contexts = null; private List conversations = null; private List notifications = null; private List relationships = null; private List howToVideos = null; private List peertubes = null; private List filters = null; private List domains = null; private List lists = null; private List emojis = null; private fr.gouv.etalab.mastodon.client.Entities.Error error = null; private String since_id, max_id; private Instance instance; private List storedStatuses; public List getAccounts() { return accounts; } public void setAccounts(List accounts) { this.accounts = accounts; } public List getStatuses() { return statuses; } public void setStatuses(List statuses) { this.statuses = statuses; } public List getContexts() { return contexts; } public void setContexts(List contexts) { this.contexts = contexts; } public List getNotifications() { return notifications; } public void setNotifications(List 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; } public Instance getInstance() { return instance; } public void setInstance(Instance instance) { this.instance = instance; } public List getRelationships() { return relationships; } public void setRelationships(List relationships) { this.relationships = relationships; } public List getEmojis() { return emojis; } public void setEmojis(List emojis) { this.emojis = emojis; } public List getLists() { return lists; } public void setLists(List lists) { this.lists = lists; } public List getFilters() { return filters; } public void setFilters(List filters) { this.filters = filters; } public List getDomains() { return domains; } public void setDomains(List domains) { this.domains = domains; } public List getHowToVideos() { return howToVideos; } public void setHowToVideos(List howToVideos) { this.howToVideos = howToVideos; } public List getPeertubes() { return peertubes; } public void setPeertubes(List peertubes) { this.peertubes = peertubes; } public List getConversations() { return conversations; } public void setConversations(List conversations) { this.conversations = conversations; } public List getStoredStatuses() { return storedStatuses; } public void setStoredStatuses(List storedStatuses) { this.storedStatuses = storedStatuses; } }