public class CollectionServiceImpl extends Object implements CollectionService
CollectionService.CollectionService.Builder| Constructor and Description |
|---|
CollectionServiceImpl(BynderApi bynderApi,
QueryDecoder queryDecoder)
Initialises a new instance of the class.
|
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Observable<retrofit2.Response<Void>> |
addMediaToCollection(CollectionAddMediaQuery collectionAddMediaQuery)
Check
CollectionService for more information. |
io.reactivex.Observable<retrofit2.Response<Void>> |
createCollection(CollectionCreateQuery collectionCreateQuery)
Check
CollectionService for more information. |
io.reactivex.Observable<retrofit2.Response<Void>> |
deleteCollection(CollectionInfoQuery collectionInfoQuery)
Check
CollectionService for more information. |
io.reactivex.Observable<retrofit2.Response<Collection>> |
getCollectionInfo(CollectionInfoQuery collectionInfoQuery)
Check
CollectionService for more information. |
io.reactivex.Observable<retrofit2.Response<List<String>>> |
getCollectionMediaIds(CollectionInfoQuery collectionInfoQuery)
Check
CollectionService for more information. |
io.reactivex.Observable<retrofit2.Response<List<Collection>>> |
getCollections(CollectionQuery collectionQuery)
Check
CollectionService for more information. |
io.reactivex.Observable<retrofit2.Response<Void>> |
removeMediaFromCollection(CollectionRemoveMediaQuery collectionRemoveMediaQuery)
Check
CollectionService for more information. |
io.reactivex.Observable<retrofit2.Response<Void>> |
shareCollection(CollectionShareQuery collectionShareQuery)
Check
CollectionService for more information. |
public CollectionServiceImpl(BynderApi bynderApi, QueryDecoder queryDecoder)
bynderApi - Instance to handle the HTTP communication with the Bynder API.queryDecoder - Query decoder.public io.reactivex.Observable<retrofit2.Response<List<Collection>>> getCollections(CollectionQuery collectionQuery)
CollectionService for more information.getCollections in interface CollectionServicecollectionQuery - Information to correctly filter/paginate collections.Observable with list of Collection.public io.reactivex.Observable<retrofit2.Response<Collection>> getCollectionInfo(CollectionInfoQuery collectionInfoQuery)
CollectionService for more information.getCollectionInfo in interface CollectionServicecollectionInfoQuery - Information about the collection we want to get the information
from.Observable with Collection information.public io.reactivex.Observable<retrofit2.Response<Void>> createCollection(CollectionCreateQuery collectionCreateQuery)
CollectionService for more information.createCollection in interface CollectionServicecollectionCreateQuery - Information about the collection we want to create.Observable with the request Response information.public io.reactivex.Observable<retrofit2.Response<Void>> deleteCollection(CollectionInfoQuery collectionInfoQuery)
CollectionService for more information.deleteCollection in interface CollectionServicecollectionInfoQuery - Information to identify the collection we want to delete.Observable with the request Response information.public io.reactivex.Observable<retrofit2.Response<List<String>>> getCollectionMediaIds(CollectionInfoQuery collectionInfoQuery)
CollectionService for more information.getCollectionMediaIds in interface CollectionServicecollectionInfoQuery - Information to identify the collection we want to retrieve media
from.Observable with list of media assets ids.public io.reactivex.Observable<retrofit2.Response<Void>> addMediaToCollection(CollectionAddMediaQuery collectionAddMediaQuery)
CollectionService for more information.addMediaToCollection in interface CollectionServicecollectionAddMediaQuery - Information needed to add media to a collection.Observable with the request Response information..public io.reactivex.Observable<retrofit2.Response<Void>> removeMediaFromCollection(CollectionRemoveMediaQuery collectionRemoveMediaQuery)
CollectionService for more information.removeMediaFromCollection in interface CollectionServicecollectionRemoveMediaQuery - Information needed to remove media from a collection.Observable with the request Response information.public io.reactivex.Observable<retrofit2.Response<Void>> shareCollection(CollectionShareQuery collectionShareQuery)
CollectionService for more information.shareCollection in interface CollectionServicecollectionShareQuery - Information required for sharing a collection.Observable with the request Response information.Copyright © 2022. All rights reserved.