Package com.jakewharton.trakt.enumerations

All Trakt-defined enumerations which are used both in request responses as well as building remote requests.

See:
          Description

Enum Summary
DayOfTheWeek  
Gender  
MediaType  
Rating  
RatingType  
 

Package com.jakewharton.trakt.enumerations Description

All Trakt-defined enumerations which are used both in request responses as well as building remote requests.

Serialization of these enumerations is handled by overriding the toString() method. Additionally, all enumerations must implement the TraktEnumeration interface in order to be properly serialized.

Deserialization of an enumerable value requires registration with the GSON builder in the TraktApiService.getGsonBuilder() method. An appropriate method of deserialization should be handled by a static method defined within the type, by convention, fromString(String).



Copyright © 2011 Jake Wharton. All Rights Reserved.