public class AvatarsManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AvatarsManager.Builder |
| Modifier and Type | Field and Description |
|---|---|
Authentication |
auth |
NetworkSession |
networkSession |
| Modifier | Constructor and Description |
|---|---|
|
AvatarsManager() |
protected |
AvatarsManager(AvatarsManager.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
UserAvatar |
createUserAvatar(String userId,
CreateUserAvatarRequestBody requestBody)
Adds or updates a user avatar.
|
UserAvatar |
createUserAvatar(String userId,
CreateUserAvatarRequestBody requestBody,
CreateUserAvatarHeaders headers)
Adds or updates a user avatar.
|
void |
deleteUserAvatar(String userId)
Removes an existing user avatar.
|
void |
deleteUserAvatar(String userId,
DeleteUserAvatarHeaders headers)
Removes an existing user avatar.
|
Authentication |
getAuth() |
NetworkSession |
getNetworkSession() |
InputStream |
getUserAvatar(String userId)
Retrieves an image of a the user's avatar.
|
InputStream |
getUserAvatar(String userId,
GetUserAvatarHeaders headers)
Retrieves an image of a the user's avatar.
|
public Authentication auth
public NetworkSession networkSession
public AvatarsManager()
protected AvatarsManager(AvatarsManager.Builder builder)
public InputStream getUserAvatar(String userId)
userId - The ID of the user. Example: "12345"public InputStream getUserAvatar(String userId, GetUserAvatarHeaders headers)
userId - The ID of the user. Example: "12345"headers - Headers of getUserAvatar methodpublic UserAvatar createUserAvatar(String userId, CreateUserAvatarRequestBody requestBody)
userId - The ID of the user. Example: "12345"requestBody - Request body of createUserAvatar methodpublic UserAvatar createUserAvatar(String userId, CreateUserAvatarRequestBody requestBody, CreateUserAvatarHeaders headers)
userId - The ID of the user. Example: "12345"requestBody - Request body of createUserAvatar methodheaders - Headers of createUserAvatar methodpublic void deleteUserAvatar(String userId)
userId - The ID of the user. Example: "12345"public void deleteUserAvatar(String userId, DeleteUserAvatarHeaders headers)
userId - The ID of the user. Example: "12345"headers - Headers of deleteUserAvatar methodpublic Authentication getAuth()
public NetworkSession getNetworkSession()