code: public static int safetyLevelToFlickrSafteyLevelId(JinxConstants.SafetyLevel safetyLevel) {
          if (safetyLevel == null) {
              return -1;
          }
          int ret;
          switch (safetyLevel) {
              case safe:
                  ret = 1;
                  break;
              case moderate:
                  ret = 2;
                  break;
              case restricted:
                  ret = 3;
                  break;
              default:
                  ret = -1;
                  break;
          }
          return ret;
      }
docs: Convert a {@link net.jeremybrooks.jinx.JinxConstants.SafetyLevel} enum to the corresponding Flickr safety level id.
  
  @param safetyLevel safety level to convert.
  @return corresponding Flickr safety level id, or -1 if the parameter is null.