public class AssetServiceImpl extends Object implements AssetService
AssetService
.AssetService.Builder
Constructor and Description |
---|
AssetServiceImpl(BynderApi bynderApi,
QueryDecoder queryDecoder)
Initialises a new instance of the class.
|
Modifier and Type | Method and Description |
---|---|
io.reactivex.Observable<retrofit2.Response<Usage>> |
createUsage(UsageCreateQuery usageCreateQuery)
Check
AssetService for more information. |
io.reactivex.Observable<retrofit2.Response<Void>> |
deleteMedia(MediaDeleteQuery mediaDeleteQuery)
Check
AssetService for more information. |
io.reactivex.Observable<retrofit2.Response<Void>> |
deleteUsage(UsageDeleteQuery usageDeleteQuery)
Check
AssetService for more information. |
io.reactivex.Observable<retrofit2.Response<List<Brand>>> |
getBrands()
Check
AssetService for more information. |
io.reactivex.Observable<retrofit2.Response<DownloadUrl>> |
getMediaDownloadUrl(MediaDownloadQuery mediaDownloadQuery)
Check
AssetService for more information. |
io.reactivex.Observable<retrofit2.Response<Media>> |
getMediaInfo(MediaInfoQuery mediaInfoQuery)
Check
AssetService for more information. |
io.reactivex.Observable<retrofit2.Response<List<Media>>> |
getMediaList(MediaQuery mediaQuery)
Check
AssetService for more information. |
io.reactivex.Observable<retrofit2.Response<Map<String,Metaproperty>>> |
getMetaproperties(MetapropertyQuery metapropertyQuery)
Check
AssetService for more information. |
io.reactivex.Observable<retrofit2.Response<List<Smartfilter>>> |
getSmartfilters()
Check
AssetService for more information. |
io.reactivex.Observable<retrofit2.Response<List<Tag>>> |
getTags()
Check
AssetService for more information. |
io.reactivex.Observable<retrofit2.Response<List<Usage>>> |
getUsage(UsageQuery usageQuery)
Check
AssetService for more information. |
io.reactivex.Observable<retrofit2.Response<Void>> |
modifyMedia(MediaModifyQuery mediaModifyQuery)
Check
AssetService for more information. |
io.reactivex.Observable<SaveMediaResponse> |
uploadFile(UploadQuery uploadQuery)
Check
AssetService for more information. |
io.reactivex.Observable<UploadProgress> |
uploadFileWithProgress(UploadQuery uploadQuery)
Check
AssetService for more information. |
public AssetServiceImpl(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<Brand>>> getBrands()
AssetService
for more information.getBrands
in interface AssetService
Observable
with list of Brand
.public io.reactivex.Observable<retrofit2.Response<List<Tag>>> getTags()
AssetService
for more information.getTags
in interface AssetService
Observable
with list of Tag
.public io.reactivex.Observable<retrofit2.Response<Map<String,Metaproperty>>> getMetaproperties(MetapropertyQuery metapropertyQuery)
AssetService
for more information.getMetaproperties
in interface AssetService
metapropertyQuery
- Information about if media count should be included in the
metaproperty options or not.Observable
with Map of String, Metaproperty
key/value pairs.public io.reactivex.Observable<retrofit2.Response<List<Media>>> getMediaList(MediaQuery mediaQuery)
AssetService
for more information.getMediaList
in interface AssetService
mediaQuery
- Information to correctly filter/paginate media.Observable
with list of Media
.public io.reactivex.Observable<retrofit2.Response<Media>> getMediaInfo(MediaInfoQuery mediaInfoQuery)
AssetService
for more information.getMediaInfo
in interface AssetService
mediaInfoQuery
- Information about the media we want to get the information from.Observable
with Media
information.public io.reactivex.Observable<retrofit2.Response<Void>> modifyMedia(MediaModifyQuery mediaModifyQuery)
AssetService
for more information.modifyMedia
in interface AssetService
mediaModifyQuery
- Information with the media asset metadata new values to be
modified.Observable
with the request Response
information.public io.reactivex.Observable<retrofit2.Response<Void>> deleteMedia(MediaDeleteQuery mediaDeleteQuery)
AssetService
for more information.deleteMedia
in interface AssetService
mediaDeleteQuery
- Information to identify the media asset we want to delete.Observable
with the request Response
information.public io.reactivex.Observable<retrofit2.Response<DownloadUrl>> getMediaDownloadUrl(MediaDownloadQuery mediaDownloadQuery)
AssetService
for more information.getMediaDownloadUrl
in interface AssetService
mediaDownloadQuery
- 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)
AssetService
for more information.createUsage
in interface AssetService
usageCreateQuery
- Information about the asset usage we want to create.Observable
with Usage
information.public io.reactivex.Observable<retrofit2.Response<List<Usage>>> getUsage(UsageQuery usageQuery)
AssetService
for more information.getUsage
in interface AssetService
usageQuery
- Information about the asset usage we want to get the information from.Observable
with list of Usage
.public io.reactivex.Observable<retrofit2.Response<Void>> deleteUsage(UsageDeleteQuery usageDeleteQuery)
AssetService
for more information.deleteUsage
in interface AssetService
usageDeleteQuery
- Information about the asset usage we want to delete.Observable
with the request Response
information.public io.reactivex.Observable<retrofit2.Response<List<Smartfilter>>> getSmartfilters()
AssetService
for more information.getSmartfilters
in interface AssetService
Observable
with List of Smartfilter
;public io.reactivex.Observable<SaveMediaResponse> uploadFile(UploadQuery uploadQuery)
AssetService
for more information.uploadFile
in interface AssetService
uploadQuery
- Upload query with the information to upload the file.Observable
with the SaveMediaResponse
information.public io.reactivex.Observable<UploadProgress> uploadFileWithProgress(UploadQuery uploadQuery)
AssetService
for more information.uploadFileWithProgress
in interface AssetService
uploadQuery
- Upload query with the information to upload the file.Observable
with the UploadProgress
information.Copyright © 2019. All rights reserved.