mcloud
1.0.0
MCloud API library for cmcc cloud service
|
CloudContent represents a content object on mcloud. the supported content type can be found. More...
#include <cloudcontent.h>
Public Types | |
enum | Type { Type::All, Type::Image, Type::Audio, Type::Video, Type::Other, Type::Doc, Type::Speadsheet, Type::PPT } |
All Content type . More... | |
typedef std::shared_ptr< CloudContent > | Ptr |
![]() | |
enum | Property { Property::Content, Property::Folder } |
typedef std::shared_ptr< CloudResource > | Ptr |
Public Member Functions | |
virtual | ~CloudContent ()=default |
const std::string & | id () const override |
Returns a unique id of cloud content object. More... | |
const std::string & | name () const override |
Returns the name of cloud content object. More... | |
const std::time_t & | created_date () const override |
Returns the datetime when content was created. More... | |
const std::time_t & | updated_date () const override |
Returns the datetime when content was updated. More... | |
const std::string & | parent_catalog_id () const override |
Returns a unique parent folder id of cloud content object. More... | |
const std::string & | etag () const override |
Returns etag of a content object. More... | |
const std::string & | owner () const override |
Returns owner id of a content object. More... | |
CloudResource::Property | property () const override |
Returns resource type of an object. More... | |
const std::string & | suffix () const |
Returns extension of a content object. More... | |
Type | type () const |
Returns content type of an object. More... | |
int64_t | content_size () const |
Returns content size of an object in bytes. More... | |
const std::string & | description () const |
Returns the description of a content object. More... | |
const std::string & | thumbnail_url () const |
Returns thumbnail link of a content object. It will be empty if there is no such a field in response. More... | |
const std::string & | big_thumbnail_url () const |
Returns big thumbnail link of a content object, It will be empty if there is no such a field in response. More... | |
const std::string & | present_url () const |
Returns a external playable link of a media content object, It will be empty if there is no such a field in response. More... | |
![]() | |
virtual | ~CloudResource ()=default |
Friends | |
class | ClientPriv |
CloudContent represents a content object on mcloud. the supported content type can be found.
Definition at line 38 of file cloudcontent.h.
typedef std::shared_ptr<CloudContent> mcloud::api::CloudContent::Ptr |
Definition at line 40 of file cloudcontent.h.
|
strong |
All Content type .
Definition at line 45 of file cloudcontent.h.
|
virtualdefault |
const std::string& mcloud::api::CloudContent::big_thumbnail_url | ( | ) | const |
Returns big thumbnail link of a content object, It will be empty if there is no such a field in response.
int64_t mcloud::api::CloudContent::content_size | ( | ) | const |
Returns content size of an object in bytes.
|
overridevirtual |
Returns the datetime when content was created.
Implements mcloud::api::CloudResource.
const std::string& mcloud::api::CloudContent::description | ( | ) | const |
Returns the description of a content object.
|
overridevirtual |
Returns etag of a content object.
Implements mcloud::api::CloudResource.
|
overridevirtual |
Returns a unique id of cloud content object.
Implements mcloud::api::CloudResource.
|
overridevirtual |
Returns the name of cloud content object.
Implements mcloud::api::CloudResource.
|
overridevirtual |
Returns owner id of a content object.
Implements mcloud::api::CloudResource.
|
overridevirtual |
Returns a unique parent folder id of cloud content object.
Implements mcloud::api::CloudResource.
const std::string& mcloud::api::CloudContent::present_url | ( | ) | const |
Returns a external playable link of a media content object, It will be empty if there is no such a field in response.
|
overridevirtual |
Returns resource type of an object.
Implements mcloud::api::CloudResource.
const std::string& mcloud::api::CloudContent::suffix | ( | ) | const |
Returns extension of a content object.
const std::string& mcloud::api::CloudContent::thumbnail_url | ( | ) | const |
Returns thumbnail link of a content object. It will be empty if there is no such a field in response.
Type mcloud::api::CloudContent::type | ( | ) | const |
Returns content type of an object.
|
overridevirtual |
Returns the datetime when content was updated.
Implements mcloud::api::CloudResource.
|
friend |
Definition at line 139 of file cloudcontent.h.