package com.expidev.gcmapp.model;

import android.support.annotation.NonNull;

import java.io.Serializable;

/**
 * Created by William.Randall on 1/9/2015.
 */
public class Ministry extends Base implements Serializable
{
    private static final long serialVersionUID = 0L;

    public static final String INVALID_ID = "";

    @NonNull
    private String ministryId = INVALID_ID;
    private String name;

    @NonNull
    public String getMinistryId()
    {
        return ministryId;
    }

    public void setMinistryId(@NonNull final String ministryId)
    {
        this.ministryId = ministryId;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    @Override
    public String toString()
    {
        return name;
    }
}

package com.expidev.gcmapp.model;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import java.io.Serializable;
import java.util.Locale;

/**
 * Created by William.Randall on 1/9/2015.
 */
public class Ministry extends Base implements Serializable
{
    private static final long serialVersionUID = 0L;

    public enum Mcc {
        UNKNOWN, SLM, LLM, DS, GCM;

        public static Mcc fromRaw(@Nullable final String raw) {
            switch (raw != null ? raw.toUpperCase(Locale.US) : "") {
                case "SLM":
                    return SLM;
                case "LLM":
                    return LLM;
                case "DS":
                    return DS;
                case "GCM":
                    return GCM;
                default:
                    return UNKNOWN;
            }
        }
    }

    public static final String INVALID_ID = "";

    @NonNull
    private String ministryId = INVALID_ID;
    private String name;

    @NonNull
    public String getMinistryId()
    {
        return ministryId;
    }

    public void setMinistryId(@NonNull final String ministryId)
    {
        this.ministryId = ministryId;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    @Override
    public String toString()
    {
        return name;
    }
}

create an Mcc enum of supported MCCs