code: public static JinxConstants.ContentType flickrContentTypeIdToContentType(int type) {
          JinxConstants.ContentType ret;
          switch (type) {
              case 1:
                  ret = JinxConstants.ContentType.photo;
                  break;
              case 2:
                  ret = JinxConstants.ContentType.screenshot;
                  break;
              case 3:
                  ret = JinxConstants.ContentType.other;
                  break;
              case 4:
                  ret = JinxConstants.ContentType.photos_and_screenshots;
                  break;
              case 5:
                  ret = JinxConstants.ContentType.screenshots_and_other;
                  break;
              case 6:
                  ret = JinxConstants.ContentType.photos_and_other;
                  break;
              case 7:
                  ret = JinxConstants.ContentType.all;
                  break;
              default:
                  ret = null;
                  break;
          }
          return ret;
      }
docs: Convert a Flickr content type id to the eqivalent {@link net.jeremybrooks.jinx.JinxConstants.ContentType} enum.
  
  @param type Flickr type id to convert.
  @return equivalent ContentType enum, or null if the parameter is not a valid Flickr content type id.