code: public static Integer groupPrivacyEnumToPrivacyId(JinxConstants.GroupPrivacy privacy) {
          if (privacy == null) {
              return null;
          }
          Integer id;
          switch (privacy) {
              case group_private:
                  id = 1;
                  break;
              case group_invite_only_public:
                  id = 2;
                  break;
              case group_open_public:
                  id = 3;
                  break;
              default:
                  id = null;
                  break;
          }
          return id;
      }
docs: Convert a GroupPrivacy enum value to the corresponding Flickr numeric identifier.
  
  @param privacy group privacy enum to convert.
  @return corresponding Flickr number id for the group privacy, or null if the parameter is invalid.