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