DigiOffice Gateway Web Services

<back to all web services

GetUserTranslations

Requires Authentication
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class GetUserTranslations extends GetTranslations
    {
        
    }

    public static class GetTranslations
    {
        public ArrayList<String> TranslateKeys = null;
        
        public ArrayList<String> getTranslateKeys() { return TranslateKeys; }
        public GetTranslations setTranslateKeys(ArrayList<String> value) { this.TranslateKeys = value; return this; }
    }

    @DataContract
    public static class GetTranslationsResponse
    {
        @DataMember
        public ArrayList<Translation> Translations = null;

        @DataMember
        public String PreferredLanguage = null;

        @DataMember
        public String PreferredLanguageShort = null;
        
        public ArrayList<Translation> getTranslations() { return Translations; }
        public GetTranslationsResponse setTranslations(ArrayList<Translation> value) { this.Translations = value; return this; }
        public String getPreferredLanguage() { return PreferredLanguage; }
        public GetTranslationsResponse setPreferredLanguage(String value) { this.PreferredLanguage = value; return this; }
        public String getPreferredLanguageShort() { return PreferredLanguageShort; }
        public GetTranslationsResponse setPreferredLanguageShort(String value) { this.PreferredLanguageShort = value; return this; }
    }

    @DataContract
    public static class Translation implements ITranslation
    {
        @DataMember
        public String Key = null;

        @DataMember
        public String NL = null;

        @DataMember
        public String EN = null;

        @DataMember
        public String DE = null;

        @DataMember
        public String FR = null;

        @DataMember
        public String C1 = null;

        @DataMember
        public String C2 = null;

        @DataMember
        public String C3 = null;

        @DataMember
        public String C4 = null;

        @DataMember
        public String C5 = null;

        @DataMember
        public String C6 = null;
        
        public String getKey() { return Key; }
        public Translation setKey(String value) { this.Key = value; return this; }
        public String getNl() { return NL; }
        public Translation setNl(String value) { this.NL = value; return this; }
        public String getEn() { return EN; }
        public Translation setEn(String value) { this.EN = value; return this; }
        public String getDe() { return DE; }
        public Translation setDe(String value) { this.DE = value; return this; }
        public String getFr() { return FR; }
        public Translation setFr(String value) { this.FR = value; return this; }
        public String getC1() { return C1; }
        public Translation setC1(String value) { this.C1 = value; return this; }
        public String getC2() { return C2; }
        public Translation setC2(String value) { this.C2 = value; return this; }
        public String getC3() { return C3; }
        public Translation setC3(String value) { this.C3 = value; return this; }
        public String getC4() { return C4; }
        public Translation setC4(String value) { this.C4 = value; return this; }
        public String getC5() { return C5; }
        public Translation setC5(String value) { this.C5 = value; return this; }
        public String getC6() { return C6; }
        public Translation setC6(String value) { this.C6 = value; return this; }
    }

}

Java GetUserTranslations DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/GetUserTranslations HTTP/1.1 
Host: digiofficeapigateway.deltares.nl 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"TranslateKeys":["String"]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Translations":[{"Key":"String","NL":"String","EN":"String","DE":"String","FR":"String","C1":"String","C2":"String","C3":"String","C4":"String","C5":"String","C6":"String"}],"PreferredLanguage":"String","PreferredLanguageShort":"String"}