code: public PermsSetResponse setPerms(String photoId, boolean isPublic, boolean isFriend, boolean isFamily,
                                     JinxConstants.Perms permComment, JinxConstants.Perms permAddMeta)
        throws JinxException {
      JinxUtils.validateParams(photoId, permComment, permAddMeta);
      Map<String, String> params = new TreeMap<>();
      params.put("method", "flickr.photos.setPerms");
      params.put("photo_id", photoId);
      params.put("is_public", isPublic ? "1" : "0");
      params.put("is_friend", isFriend ? "1" : "0");
      params.put("is_family", isFamily ? "1" : "0");
      params.put("perm_comment", Integer.toString(JinxUtils.permsToFlickrPermsId(permComment)));
      params.put("perm_addmeta", Integer.toString(JinxUtils.permsToFlickrPermsId(permAddMeta)));
      return jinx.flickrPost(params, PermsSetResponse.class);
    }
docs: Set permissions for a photo.
  <br>
  This method requires authentication with 'write' permission.
  
  @param photoId     Required. The id of the photo to set permissions for.
  @param isPublic    Required. True to set the photo to public, false to set it to private.
  @param isFriend    Required. True to make the photo visible to friends when private, false to not.
  @param isFamily    Required. True to make the photo visible to family when private, false to not.
  @param permComment Required. Who can add comments to the photo and it's notes.
  @param permAddMeta Required. Who can add notes and tags to the photo.
  @return object with the results.
  @throws JinxException if required parameters are null or empty, or if there are any errors.
  @see <a href="https://www.flickr.com/services/api/flickr.photos.setPerms.html">flickr.photos.setPerms</a>