com.mytaxi.apis.phrase.api.translation.dto.PhraseTranslationDTO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of phrase-java-client Show documentation
Show all versions of phrase-java-client Show documentation
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.
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