2019-05-18 11:10:30 +02:00
|
|
|
package app.fedilab.android.client.Entities;
|
2019-01-07 19:16:15 +01:00
|
|
|
|
2019-01-08 16:24:02 +01:00
|
|
|
import java.util.LinkedHashMap;
|
2019-01-07 19:16:15 +01:00
|
|
|
|
|
|
|
/* Copyright 2019 Thomas Schneider
|
|
|
|
*
|
2019-05-18 11:10:30 +02:00
|
|
|
* This file is a part of Fedilab
|
2019-01-07 19:16:15 +01: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.
|
|
|
|
*
|
2019-05-18 11:10:30 +02:00
|
|
|
* Fedilab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
2019-01-07 19:16:15 +01:00
|
|
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
|
|
* Public License for more details.
|
|
|
|
*
|
2019-05-18 11:10:30 +02:00
|
|
|
* You should have received a copy of the GNU General Public License along with Fedilab; if not,
|
2019-01-07 19:16:15 +01:00
|
|
|
* see <http://www.gnu.org/licenses>. */
|
|
|
|
|
|
|
|
|
|
|
|
public class PeertubeInformation {
|
|
|
|
|
|
|
|
|
2019-01-08 16:24:02 +01:00
|
|
|
private LinkedHashMap<Integer, String> categories;
|
|
|
|
private LinkedHashMap<String, String> languages;
|
|
|
|
private LinkedHashMap<Integer, String> licences;
|
|
|
|
private LinkedHashMap<Integer, String> privacies;
|
2019-05-26 19:41:04 +02:00
|
|
|
private LinkedHashMap<Integer, String> playlistPrivacies;
|
2019-01-08 16:24:02 +01:00
|
|
|
private LinkedHashMap<String, String> translations;
|
2019-01-07 19:16:15 +01:00
|
|
|
|
2019-05-26 19:41:04 +02:00
|
|
|
|
2019-01-08 16:24:02 +01:00
|
|
|
public static final LinkedHashMap<String, String> langueMapped;
|
2019-01-07 19:16:15 +01:00
|
|
|
static {
|
2019-01-08 16:24:02 +01:00
|
|
|
LinkedHashMap<String, String> aMap = new LinkedHashMap<>();
|
2019-01-07 19:16:15 +01:00
|
|
|
aMap.put("ca", "ca-ES");
|
|
|
|
aMap.put("de", "de-DE");
|
|
|
|
aMap.put("en", "en-US");
|
|
|
|
aMap.put("es", "es-ES");
|
|
|
|
aMap.put("eo", "eo");
|
|
|
|
aMap.put("eu", "eu-ES");
|
|
|
|
aMap.put("fr", "fr-FR");
|
|
|
|
aMap.put("oc", "oc");
|
|
|
|
aMap.put("pt", "pt-BR");
|
|
|
|
aMap.put("sv", "sv-SE");
|
|
|
|
aMap.put("cs", "cs-CZ");
|
|
|
|
aMap.put("zh-CN", "zh-Hans-CN");
|
|
|
|
aMap.put("zh-TW", "zh-Hans-TW");
|
2019-01-08 16:24:02 +01:00
|
|
|
langueMapped = aMap;
|
2019-01-07 19:16:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-01-08 16:24:02 +01:00
|
|
|
public LinkedHashMap<String, String> getTranslations() {
|
2019-01-07 19:16:15 +01:00
|
|
|
return translations;
|
|
|
|
}
|
|
|
|
|
2019-01-08 16:24:02 +01:00
|
|
|
public void setTranslations(LinkedHashMap<String, String> translations) {
|
2019-01-07 19:16:15 +01:00
|
|
|
this.translations = translations;
|
|
|
|
}
|
|
|
|
|
2019-01-08 16:24:02 +01:00
|
|
|
public LinkedHashMap<Integer, String> getCategories() {
|
2019-01-07 19:16:15 +01:00
|
|
|
return categories;
|
|
|
|
}
|
|
|
|
|
2019-01-08 16:24:02 +01:00
|
|
|
public void setCategories(LinkedHashMap<Integer, String> categories) {
|
2019-01-07 19:16:15 +01:00
|
|
|
this.categories = categories;
|
|
|
|
}
|
|
|
|
|
2019-01-08 16:24:02 +01:00
|
|
|
public LinkedHashMap<String, String> getLanguages() {
|
2019-01-07 19:16:15 +01:00
|
|
|
return languages;
|
|
|
|
}
|
|
|
|
|
2019-01-08 16:24:02 +01:00
|
|
|
public void setLanguages(LinkedHashMap<String, String> languages) {
|
2019-01-07 19:16:15 +01:00
|
|
|
this.languages = languages;
|
|
|
|
}
|
|
|
|
|
2019-01-08 16:24:02 +01:00
|
|
|
public LinkedHashMap<Integer, String> getLicences() {
|
2019-01-07 19:16:15 +01:00
|
|
|
return licences;
|
|
|
|
}
|
|
|
|
|
2019-01-08 16:24:02 +01:00
|
|
|
public void setLicences(LinkedHashMap<Integer, String> licences) {
|
2019-01-07 19:16:15 +01:00
|
|
|
this.licences = licences;
|
|
|
|
}
|
|
|
|
|
2019-01-08 16:24:02 +01:00
|
|
|
public LinkedHashMap<Integer, String> getPrivacies() {
|
2019-01-07 19:16:15 +01:00
|
|
|
return privacies;
|
|
|
|
}
|
|
|
|
|
2019-01-08 16:24:02 +01:00
|
|
|
public void setPrivacies(LinkedHashMap<Integer, String> privacies) {
|
2019-01-07 19:16:15 +01:00
|
|
|
this.privacies = privacies;
|
|
|
|
}
|
2019-05-26 19:41:04 +02:00
|
|
|
|
|
|
|
public LinkedHashMap<Integer, String> getPlaylistPrivacies() {
|
|
|
|
return playlistPrivacies;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setPlaylistPrivacies(LinkedHashMap<Integer, String> playlistPrivacies) {
|
|
|
|
this.playlistPrivacies = playlistPrivacies;
|
|
|
|
}
|
2019-01-07 19:16:15 +01:00
|
|
|
}
|