public class AvatarsApi extends Object
| Constructor and Description |
|---|
AvatarsApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Completable |
deleteAvatar(String type,
String owningObjectId,
Long id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete avatar
Deletes an avatar from a project or issue type.
|
io.reactivex.Single<SystemAvatars> |
getAllSystemAvatars(String type,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get system avatars by type
Returns a list of system avatar details by owner type, where the owner types are issue type, project, or user.
|
io.reactivex.Single<Avatars> |
getAvatars(String type,
String entityId,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get avatars
Returns the system and custom avatars for a project or issue type.
|
io.reactivex.Single<Avatar> |
storeAvatar(String type,
String entityId,
Integer size,
Object body,
Optional<Integer> x,
Optional<Integer> y,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Load avatar
Loads a custom avatar for a project or issue type.
|
public io.reactivex.Completable deleteAvatar(String type, String owningObjectId, Long id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
type - The avatar type. (required)owningObjectId - The ID of the item the avatar is associated with. (required)id - The ID of the avatar. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<SystemAvatars> getAllSystemAvatars(String type, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
type - The avatar type. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Avatars> getAvatars(String type, String entityId, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
type - The avatar type. (required)entityId - The ID of the item the avatar is associated with. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Avatar> storeAvatar(String type, String entityId, Integer size, Object body, Optional<Integer> x, Optional<Integer> y, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
type - The avatar type. (required)entityId - The ID of the item the avatar is associated with. (required)size - The length of each side of the crop region. (required)body - (required)x - The X coordinate of the top-left corner of the crop region. (optional, default to 0)y - The Y coordinate of the top-left corner of the crop region. (optional, default to 0)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
Copyright © 2011–2021 Everit Kft.. All rights reserved.