public Map < String , String > getUploadParameters ( ) { Map < String , String > parameters = new TreeMap <> ( ) ; String title = getTitle ( ) ; if ( title != null ) { parameters . put ( "title" , title ) ; } String description = getDescription ( ) ; if ( description != null ) { parameters . put ( "description" , description ) ; } Collection < String > tags = getTags ( ) ; if ( tags != null ) { parameters . put ( "tags" , StringUtilities . join ( tags , " " ) ) ; } if ( isHidden ( ) != null ) { parameters . put ( "hidden" , isHidden ( ) . booleanValue ( ) ? "1" : "0" ) ; } if ( getSafetyLevel ( ) != null ) { parameters . put ( "safety_level" , getSafetyLevel ( ) ) ; } if ( getContentType ( ) != null ) { parameters . put ( "content_type" , getContentType ( ) ) ; } if ( getPhotoId ( ) != null ) { parameters . put ( "photo_id" , getPhotoId ( ) ) ; } parameters . put ( "is_public" , isPublicFlag ( ) ? "1" : "0" ) ; parameters . put ( "is_family" , isFamilyFlag ( ) ? "1" : "0" ) ; parameters . put ( "is_friend" , isFriendFlag ( ) ? "1" : "0" ) ; parameters . put ( "async" , isAsync ( ) ? "1" : "0" ) ; return parameters ; }
Get the upload parameters .