code: public static int permsToFlickrPermsId(JinxConstants.Perms perms) {
          if (perms == null) {
              return -1;
          }
          int id;
          switch (perms) {
              case nobody:
                  id = 0;
                  break;
              case friendsAndFamily:
                  id = 1;
                  break;
              case contacts:
                  id = 2;
                  break;
              case everybody:
                  id = 3;
                  break;
              default:
                  id = -1;
                  break;
          }
          return id;
      }
docs: Convert a {@link net.jeremybrooks.jinx.JinxConstants.Perms} enum to the corresponding Flickr perms id.
  
  @param perms Perms enum to convert.
  @return Flickr perms id, or -1 if the parameter is null.