package com.brink.main.models; public class FeedItem { public enum Type { Checkin(0), Trending(1), Advertisement(2), Loading(3); private int switchValue; private Type(int switchValue) { this.switchValue = switchValue; } public int TypeValue() { return this.switchValue; } }; public String City; public String Zone; public Type type; public Bar Bar; public User User; public Checkin Checkin; public void SetEnum(String stype) { if(stype.equals("Checkin")) { this.type = type.Checkin; } else if(stype.equals("Trending")) { this.type = type.Trending; } else if(stype.equals("Advertisement")) { this.type = type.Advertisement; } else { this.type = type.Loading; } } }