code: public static int privacyFilterToFlickrPrivacyFilterId(JinxConstants.PrivacyFilter privacyFilter) {
          if (privacyFilter == null) {
              return -1;
          }
          int level;
          switch (privacyFilter) {
              case privacyPublic:
                  level = 1;
                  break;
              case privacyFriends:
                  level = 2;
                  break;
              case privacyFamily:
                  level = 3;
                  break;
              case privacyFriendsAndFamily:
                  level = 4;
                  break;
              case privacyPrivate:
                  level = 5;
                  break;
              default:
                  level = -1;
                  break;
          }
          return level;
      }
docs: Convert a {@link net.jeremybrooks.jinx.JinxConstants.PrivacyFilter} enum into the corresponding Flickr
  privacy filter id.
  
  @param privacyFilter privacy filter enum to convert.
  @return Flickr privacy filter id, or 0 if argument is null.