All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mytaxi.apis.phrase.api.translation.dto.PhraseTranslationDTO Maven / Gradle / Ivy

Go to download

This projects contains of services to handle the translations from [PhraseApp API v2](http://docs.phraseapp.com/api/v2/). It's supposed to expose Phrase translations as POJO or as File within the java world.

There is a newer version: 1.0.6
Show newest version
package com.mytaxi.apis.phrase.api.translation.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.mytaxi.apis.phrase.api.locale.dto.PhraseLocaleDTO;

/**
 * Created by m.winkelmann on 05.11.15.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class PhraseTranslationDTO
{
    private String id;
    @JsonProperty("content")
    private String translation;
    private PhraseKeyDTO key;
    private PhraseLocaleDTO locale;


    private PhraseTranslationDTO()
    {

    }


    public String getId()
    {
        return id;
    }


    public String getTranslation()
    {
        return translation;
    }


    public PhraseKeyDTO getKey()
    {
        return key;
    }


    public PhraseLocaleDTO getLocale()
    {
        return locale;
    }


    @Override
    public String toString()
    {
        return "PhraseTranslationDTO{" +
            "id='" + id + '\'' +
            ", translation='" + translation + '\'' +
            ", key='" + key + '\'' +
            ", locale=" + locale +
            '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy