package app.fedilab.fedilabtube.client.entities; /* Copyright 2020 Thomas Schneider * * This file is a part of TubeLab * * 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. * * TubeLab 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 TubeLab; if not, * see . */ import java.util.LinkedHashMap; public class PeertubeInformation { public static final LinkedHashMap langueMapped; static { LinkedHashMap aMap = new LinkedHashMap<>(); 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"); langueMapped = aMap; } private LinkedHashMap categories; private LinkedHashMap languages; private LinkedHashMap licences; private LinkedHashMap privacies; private LinkedHashMap playlistPrivacies; private LinkedHashMap translations; public LinkedHashMap getTranslations() { return translations; } public void setTranslations(LinkedHashMap translations) { this.translations = translations; } public LinkedHashMap getCategories() { return categories; } public void setCategories(LinkedHashMap categories) { this.categories = categories; } public LinkedHashMap getLanguages() { return languages; } public void setLanguages(LinkedHashMap languages) { this.languages = languages; } public LinkedHashMap getLicences() { return licences; } public void setLicences(LinkedHashMap licences) { this.licences = licences; } public LinkedHashMap getPrivacies() { return privacies; } public void setPrivacies(LinkedHashMap privacies) { this.privacies = privacies; } public LinkedHashMap getPlaylistPrivacies() { return playlistPrivacies; } public void setPlaylistPrivacies(LinkedHashMap playlistPrivacies) { this.playlistPrivacies = playlistPrivacies; } }