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<Usage>> |
createUsage(UsageCreateQuery usageCreateQuery)
Check
AssetBankService for more information. |
io.reactivex.Observable<retrofit2.Response<Void>> |
deleteMedia(MediaDeleteQuery mediaDeleteQuery)
Check
AssetBankService for more information. |
io.reactivex.Observable<retrofit2.Response<Void>> |
deleteUsage(UsageDeleteQuery usageDeleteQuery)
Check
AssetBankService for more information. |
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<Smartfilter>>> |
getSmartfilters()
Check
AssetBankService for more information. |
io.reactivex.Observable<retrofit2.Response<List<Tag>>> |
getTags()
Check
AssetBankService for more information. |
io.reactivex.Observable<retrofit2.Response<List<Usage>>> |
getUsage(UsageQuery usageQuery)
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<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<retrofit2.Response<Void>> deleteMedia(MediaDeleteQuery mediaDeleteQuery) throws IllegalAccessException
AssetBankService for more information.deleteMedia in interface AssetBankServicemediaDeleteQuery - Information to identify the media asset we want to delete.Observable with the request Response 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<Usage>> createUsage(UsageCreateQuery usageCreateQuery) throws IllegalAccessException
AssetBankService for more information.createUsage in interface AssetBankServiceusageCreateQuery - Information about the asset usage we want to create.Observable with Usage information.IllegalAccessException - Check Utils.convertField(Field, Object, Map) for more
information.public io.reactivex.Observable<retrofit2.Response<List<Usage>>> getUsage(UsageQuery usageQuery) throws IllegalAccessException
AssetBankService for more information.getUsage in interface AssetBankServiceusageQuery - Information about the asset usage we want to get the information from.Observable with list of Usage.IllegalAccessException - Check Utils.convertField(Field, Object, Map) for more
information.public io.reactivex.Observable<retrofit2.Response<Void>> deleteUsage(UsageDeleteQuery usageDeleteQuery) throws IllegalAccessException
AssetBankService for more information.deleteUsage in interface AssetBankServiceusageDeleteQuery - Information about the asset usage we want to delete.Observable with the request Response information.IllegalAccessException - Check Utils.convertField(Field, Object, Map) for more
information.public io.reactivex.Observable<retrofit2.Response<List<Smartfilter>>> getSmartfilters()
AssetBankService for more information.getSmartfilters in interface AssetBankServiceObservable with List of Smartfilter;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 © 2018. All rights reserved.