public interface AvatarProvider
Modifier and Type | Method and Description |
---|---|
String |
getChangeAvatarUrl(IdentifiedUser forUser)
Gets a URL for a user to modify their avatar image.
|
String |
getUrl(IdentifiedUser forUser,
int imageSize)
Get avatar URL.
|
String getUrl(IdentifiedUser forUser, int imageSize)
forUser
- The user for which to load an avatar imageimageSize
- A requested image size, in pixels. An imageSize of 0
indicates to use whatever default size the provider determines.
AvatarProviders may ignore the requested image size. The web
interface will resize any image to match imageSize, so ideally the
provider should return an image sized correctly.null
is acceptable, and results in the server responding
with a 404. This will hide the avatar image in the web UI.String getChangeAvatarUrl(IdentifiedUser forUser)
forUser
- The user wishing to change their avatar image