Event District Types

From #114 

Wait a little bit for caches to be cleared out so I can test this...
Oh yeah, that's a good point. That's probably the most extendable way to do
it
On Jun 14, 2014 3:35 PM, "Eugene Fang" <notifications@github.com> wrote:

> In
> android/src/main/java/com/thebluealliance/androidclient/models/Event.java:
>
> >  			 */
> > -            return NONE;
> > +            switch(in){
> > +                case 0: default: return  NONE;
> > +                case 1: return FIM;
> > +                case 2: return MAR;
> > +                case 3: return NE;
> > +                case 4: return PNW;
> > +            }
> > +        }
> > +
> > +        public String toString(){
> > +            switch(this){
> > +                default:
> > +                case NONE: return "No District";
> > +                case FIM: return "Michigan";
>
> Ok that's good.
>
> Another idea. Instead of putting the the mapping from a type to string in
> code, we can build it dynamically when calls to the API are made since
> event details return both the enumerated district and the district string.
> So whenever we fetch event details, we update the mapping for the
> enumerated district to that string. The invariant here is that all events
> with the same district_enum have the same district_string.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/the-blue-alliance/the-blue-alliance-android/pull/115/files#r13782438>
> .
>