public class ProjectAvatarsApi extends Object
| Constructor and Description |
|---|
ProjectAvatarsApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<Avatar> |
createProjectAvatar(String projectIdOrKey,
Object body,
Optional<Integer> x,
Optional<Integer> y,
Optional<Integer> size,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Load project avatar
Loads an avatar for a project.
|
io.reactivex.Completable |
deleteProjectAvatar(String projectIdOrKey,
Long id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete project avatar
Deletes a custom avatar from a project.
|
io.reactivex.Single<ProjectAvatars> |
getAllProjectAvatars(String projectIdOrKey,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get all project avatars
Returns all project avatars, grouped by system and custom avatars.
|
io.reactivex.Single<Object> |
updateProjectAvatar(String projectIdOrKey,
Avatar avatar,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Set project avatar
Sets the avatar displayed for a project.
|
public ProjectAvatarsApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<Avatar> createProjectAvatar(String projectIdOrKey, Object body, Optional<Integer> x, Optional<Integer> y, Optional<Integer> size, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
projectIdOrKey - The ID or (case-sensitive) key of the project. (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)size - The length of each side of the crop region. (optional)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.Completable deleteProjectAvatar(String projectIdOrKey, Long id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
projectIdOrKey - The project ID or (case-sensitive) key. (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<ProjectAvatars> getAllProjectAvatars(String projectIdOrKey, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
projectIdOrKey - The ID or (case-sensitive) key of the project. (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<Object> updateProjectAvatar(String projectIdOrKey, Avatar avatar, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
projectIdOrKey - The ID or (case-sensitive) key of the project. (required)avatar - (required)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.