public BoxRequestsFile . DownloadAvatar getDownloadAvatarRequest ( File target , String userId ) throws IOException { if ( ! target . exists ( ) ) { throw new FileNotFoundException ( ) ; } BoxRequestsFile . DownloadAvatar request = new BoxRequestsFile . DownloadAvatar ( userId , target , getAvatarDownloadUrl ( userId ) , mSession ) . setAvatarType ( BoxRequestsFile . DownloadAvatar . LARGE ) ; return request ; }
Gets a request that downloads an avatar of the target user id .