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

com.mytaxi.apis.phrase.domainobject.locale.PhraseProjectLocale 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.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