package com.cmd_trello.trello.data;

/**
 * Created by josh on 4/6/15.
 */
public enum AvatarSourceEnum {
    GRAVATAR("gravatar"), UPLOAD("upload"), NONE("none");

    private String value;
    private AvatarSourceEnum(String value) { this.value = value; }

    public String getValue() { return value; }
    public static AvatarSourceEnum getFromString(String value) {
        for (AvatarSourceEnum ae : AvatarSourceEnum.values()) {
            if (ae.equals(value)) {
                return ae;
            }
        }
        return null;
    }
}
