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