public static Integer suggestionStatusToFlickrSuggestionStatusId ( JinxConstants . SuggestionStatus status ) { if ( status == null ) { return null ; } Integer id ; switch ( status ) { case pending : id = 0 ; break ; case approved : id = 1 ; break ; case rejected : id = 2 ; break ; default : id = null ; break ; } return id ; }
Convert a suggestion status to the corresponding Flickr suggestion status id .