com.mytaxi.apis.phrase.domainobject.locale.PhraseProjectLocale 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.domainobject.locale;
import java.util.List;
/**
* Created by m.winkelmann on 11.11.15.
*/
public class PhraseProjectLocale
{
private String projectId;
private List locales;
private PhraseProjectLocale(String projectId, List locales)
{
this.projectId = projectId;
this.locales = locales;
}
public String getProjectId()
{
return projectId;
}
public List getLocales()
{
return locales;
}
public static Builder newBuilder()
{
return new Builder();
}
public static class Builder
{
private String projectId;
private List locales;
public Builder withProjectId(String projectId)
{
this.projectId = projectId;
return this;
}
public Builder withLocales(List locales)
{
this.locales = locales;
return this;
}
public PhraseProjectLocale build()
{
return new PhraseProjectLocale(projectId, locales);
}
}
@Override
public String toString()
{
return "PhraseProjectLocale{" +
"projectId='" + projectId + '\'' +
", locales=" + locales +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy