public class AssetBankServiceImpl extends Object implements AssetBankService
AssetBankService.| Constructor and Description |
|---|
AssetBankServiceImpl(BynderApi bynderApi)
Initialises a new instance of the class.
|
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Observable<retrofit2.Response<List<Brand>>> |
getBrands()
Check
AssetBankService for more information. |
io.reactivex.Observable<retrofit2.Response<DownloadUrl>> |
getMediaDownloadUrl(MediaDownloadQuery mediaDownloadQuery)
Check
AssetBankService for more information. |
io.reactivex.Observable<retrofit2.Response<Media>> |
getMediaInfo(MediaInfoQuery mediaInfoQuery)
Check
AssetBankService for more information. |
io.reactivex.Observable<retrofit2.Response<List<Media>>> |
getMediaList(MediaQuery mediaQuery)
Check
AssetBankService for more information. |
io.reactivex.Observable<retrofit2.Response<Map<String,Metaproperty>>> |
getMetaproperties(MetapropertyQuery metapropertyQuery)
Check
AssetBankService for more information. |
io.reactivex.Observable<retrofit2.Response<List<Tag>>> |
getTags()
Check
AssetBankService for more information. |
io.reactivex.Observable<retrofit2.Response<Void>> |
setMediaProperties(MediaPropertiesQuery mediaPropertiesQuery)
Check
AssetBankService for more information. |
io.reactivex.Observable<SaveMediaResponse> |
uploadFile(UploadQuery uploadQuery)
Check
AssetBankService for more information. |
io.reactivex.Observable<UploadProgress> |
uploadFileWithProgress(UploadQuery uploadQuery)
Check
AssetBankService for more information. |
public AssetBankServiceImpl(BynderApi bynderApi)
bynderApi - Instance to handle the HTTP communication with the Bynder API.public io.reactivex.Observable<retrofit2.Response<List<Brand>>> getBrands()
AssetBankService for more information.getBrands in interface AssetBankServiceObservable with list of Brand.public io.reactivex.Observable<retrofit2.Response<List<Tag>>> getTags()
AssetBankService for more information.getTags in interface AssetBankServiceObservable with list of Tag.public io.reactivex.Observable<retrofit2.Response<Map<String,Metaproperty>>> getMetaproperties(MetapropertyQuery metapropertyQuery) throws IllegalAccessException
AssetBankService for more information.getMetaproperties in interface AssetBankServicemetapropertyQuery - Information about if media count should be included in the
metaproperty options or not.Observable with Map of String, Metaproperty key/value pairs.IllegalAccessException - Check Utils.convertField(Field, Object, Map) for more
information.public io.reactivex.Observable<retrofit2.Response<List<Media>>> getMediaList(MediaQuery mediaQuery) throws IllegalAccessException
AssetBankService for more information.getMediaList in interface AssetBankServicemediaQuery - Information to correctly filter/paginate media.Observable with list of Media.IllegalAccessException - Check Utils.convertField(Field, Object, Map) for more
information.public io.reactivex.Observable<retrofit2.Response<Media>> getMediaInfo(MediaInfoQuery mediaInfoQuery) throws IllegalAccessException
AssetBankService for more information.getMediaInfo in interface AssetBankServicemediaInfoQuery - Information about the media we want to get the information from.Observable with Media information.IllegalAccessException - Check Utils.convertField(Field, Object, Map) for more
information.public io.reactivex.Observable<retrofit2.Response<DownloadUrl>> getMediaDownloadUrl(MediaDownloadQuery mediaDownloadQuery)
AssetBankService for more information.getMediaDownloadUrl in interface AssetBankServicemediaDownloadQuery - Information with the media we want to get the URL from.Observable with the DownloadUrl information of the media asset file.public io.reactivex.Observable<retrofit2.Response<Void>> setMediaProperties(MediaPropertiesQuery mediaPropertiesQuery) throws IllegalAccessException
AssetBankService for more information.setMediaProperties in interface AssetBankServicemediaPropertiesQuery - Information with the media asset properties new values to be
updated.Observable with the request Response information.IllegalAccessException - Check Utils.convertField(Field, Object, Map) for more
information.public io.reactivex.Observable<SaveMediaResponse> uploadFile(UploadQuery uploadQuery)
AssetBankService for more information.uploadFile in interface AssetBankServiceuploadQuery - Upload query with the information to upload the file.Observable with the SaveMediaResponse information.public io.reactivex.Observable<UploadProgress> uploadFileWithProgress(UploadQuery uploadQuery)
AssetBankService for more information.uploadFileWithProgress in interface AssetBankServiceuploadQuery - Upload query with the information to upload the file.Observable with the UploadProgress information.Copyright © 2017. All rights reserved.