code: 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;
      }
docs: Convert a numeric Flickr member type id to a MemberType enum value.
  
  @param typeId the numeric member type id to convert.
  @return MemberType enum value corresponding to the id, or null if the typeId is not a valid Flickr member type.