summaryrefslogtreecommitdiffstats
path: root/app/src/main/java/fr/gouv/etalab/mastodon/client/Entities/PeertubeInformation.java
blob: c0e33c6df0e21bce118435096b3d6e03fec34081 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package fr.gouv.etalab.mastodon.client.Entities;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

/* Copyright 2019 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>. */


public class PeertubeInformation {


    private HashMap<Integer, String> categories;
    private HashMap<String, String> languages;
    private HashMap<Integer, String> licences;
    private HashMap<Integer, String> privacies;
    private HashMap<String, String> translations;

    public static final Map<String, String> langueMapped;
    static {
        HashMap<String, String> aMap = new HashMap<>();
        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 = Collections.unmodifiableMap(aMap);
    }


    public HashMap<String, String> getTranslations() {
        return translations;
    }

    public void setTranslations(HashMap<String, String> translations) {
        this.translations = translations;
    }

    public HashMap<Integer, String> getCategories() {
        return categories;
    }

    public void setCategories(HashMap<Integer, String> categories) {
        this.categories = categories;
    }

    public HashMap<String, String> getLanguages() {
        return languages;
    }

    public void setLanguages(HashMap<String, String> languages) {
        this.languages = languages;
    }

    public HashMap<Integer, String> getLicences() {
        return licences;
    }

    public void setLicences(HashMap<Integer, String> licences) {
        this.licences = licences;
    }

    public HashMap<Integer, String> getPrivacies() {
        return privacies;
    }

    public void setPrivacies(HashMap<Integer, String> privacies) {
        this.privacies = privacies;
    }
}