public static Integer memberTypeToMemberTypeId ( JinxConstants . MemberType memberType ) { if ( memberType == null ) { return null ; } Integer type ; switch ( memberType ) { case narwhal : type = 1 ; break ; case member : type = 2 ; break ; case moderator : type = 3 ; break ; case admin : type = 4 ; break ; default : type = null ; break ; } return type ; }
Convert a MemberType enum to the numeric Flickr member type id .