Easemob Windows SDK
Classes | Public Member Functions | List of all members
easemob::EMVideoMessageBody Class Reference
Inheritance diagram for easemob::EMVideoMessageBody:
Inheritance graph
Collaboration diagram for easemob::EMVideoMessageBody:
Collaboration graph

Classes

struct  Size
 

Public Member Functions

 EMVideoMessageBody ()
 Video message body constructor. More...
 
 EMVideoMessageBody (const std::string &localPath, const std::string &thumbnailLocalPath)
 Video message body constructor. More...
 
virtual ~EMVideoMessageBody ()
 Class destructor. More...
 
void setThumbnailLocalPath (const std::string &)
 Set local path of the thumbnail. More...
 
const std::string & thumbnailLocalPath () const
 Get local path of the thumbnail. More...
 
void setThumbnailRemotePath (const std::string &)
 Set remote path of the thumbnail. More...
 
const std::string & thumbnailRemotePath () const
 Get remote path of the thumbnail. More...
 
void setThumbnailSecretKey (const std::string &)
 Set secret key of the thumbnail. More...
 
const std::string & thumbnailSecretKey () const
 Get secret key of the thumbnail. More...
 
void setThumbnailDownloadStatus (EMDownloadStatus)
 Set download status of the thumbnail. More...
 
EMDownloadStatus thumbnailDownloadStatus () const
 Get download status of the thumbnail. More...
 
void setSize (const Size &)
 Set size of the video. More...
 
const Sizesize () const
 Get size of the video. More...
 
int duration () const
 Get playing duration of the video. More...
 
void setDuration (int)
 Set playing duration of the video. More...
 
- Public Member Functions inherited from easemob::EMFileMessageBody
 EMFileMessageBody (EMMessageBodyType=FILE)
 File message body constructor. More...
 
 EMFileMessageBody (const std::string &localPath, EMMessageBodyType=FILE)
 File message body constructor. More...
 
virtual ~EMFileMessageBody ()
 Class destructor. More...
 
std::string displayName () const
 Get display name of the attachment. More...
 
void setDisplayName (const std::string &)
 Set display name of the attachment. More...
 
const std::string & localPath () const
 Get local path of the attachment. More...
 
void setLocalPath (const std::string &)
 Set local path of the attachment. More...
 
const std::string & remotePath () const
 Get remote path of the attachment. More...
 
void setRemotePath (const std::string &)
 Set remote path of the attachment. More...
 
const std::string & secretKey () const
 Get secret key of the attachment, it's used to download attachment from server. More...
 
void setSecretKey (const std::string &)
 Set secret key of the attachment. More...
 
int64_t fileLength () const
 Get file length of the attachment. More...
 
void setFileLength (int64_t)
 Set file length of the attachment. More...
 
EMDownloadStatus downloadStatus () const
 Get file download status of the attachment. More...
 
void setDownloadStatus (EMDownloadStatus)
 Set download status of the attachment. More...
 
- Public Member Functions inherited from easemob::EMMessageBody
 EMMessageBody (EMMessageBodyType=TEXT)
 Message body constructor. More...
 
virtual ~EMMessageBody ()
 Class destructor. More...
 
EMMessageBodyType type () const
 Get message body type. More...
 
- Public Member Functions inherited from easemob::EMBaseObject
template<typename T >
T * cast ()
 

Additional Inherited Members

- Public Types inherited from easemob::EMFileMessageBody
enum  EMDownloadStatus { DOWNLOADING, SUCCESSED, FAILED, PENDING }
 
- Public Types inherited from easemob::EMMessageBody
enum  EMMessageBodyType {
  TEXT, IMAGE, VIDEO, LOCATION,
  VOICE, FILE, COMMAND
}
 
- Protected Attributes inherited from easemob::EMMessageBody
EMMessageBodyPrivate * mBodyPrivate
 
EMMessageBodyType mType
 

Constructor & Destructor Documentation

§ EMVideoMessageBody() [1/2]

easemob::EMVideoMessageBody::EMVideoMessageBody ( )

Video message body constructor.

Parameters
NA
Returns
NA

§ EMVideoMessageBody() [2/2]

easemob::EMVideoMessageBody::EMVideoMessageBody ( const std::string &  localPath,
const std::string &  thumbnailLocalPath 
)

Video message body constructor.

Parameters
Videoattachment local path.
Videothumbnail local path.
Returns
NA

§ ~EMVideoMessageBody()

virtual easemob::EMVideoMessageBody::~EMVideoMessageBody ( )
virtual

Class destructor.

Parameters
NA
Returns
NA

Member Function Documentation

§ duration()

int easemob::EMVideoMessageBody::duration ( ) const

Get playing duration of the video.

Parameters
NA
Returns
The video playing duration.

§ setDuration()

void easemob::EMVideoMessageBody::setDuration ( int  )

Set playing duration of the video.

Parameters
Thevideo's playing duration.
Returns
NA

§ setSize()

void easemob::EMVideoMessageBody::setSize ( const Size )

Set size of the video.

Parameters
Thevideo's size.
Returns
NA

§ setThumbnailDownloadStatus()

void easemob::EMVideoMessageBody::setThumbnailDownloadStatus ( EMDownloadStatus  )

Set download status of the thumbnail.

Note: Usually, user should NOT call this method directly.

Parameters
Thedownload status.
Returns
NA

§ setThumbnailLocalPath()

void easemob::EMVideoMessageBody::setThumbnailLocalPath ( const std::string &  )

Set local path of the thumbnail.

Parameters
Thelocal path.
Returns
NA

§ setThumbnailRemotePath()

void easemob::EMVideoMessageBody::setThumbnailRemotePath ( const std::string &  )

Set remote path of the thumbnail.

Note: It's internal used, user should never need to call this method.

Parameters
Theremote path.
Returns
NA

§ setThumbnailSecretKey()

void easemob::EMVideoMessageBody::setThumbnailSecretKey ( const std::string &  )

Set secret key of the thumbnail.

Note: It's internal used, user should never need to call this method.

Parameters
Thesecret key.
Returns
NA

§ size()

const Size& easemob::EMVideoMessageBody::size ( ) const

Get size of the video.

Parameters
NA
Returns
The video size.

§ thumbnailDownloadStatus()

EMDownloadStatus easemob::EMVideoMessageBody::thumbnailDownloadStatus ( ) const

Get download status of the thumbnail.

Parameters
NA
Returns
The download status.

§ thumbnailLocalPath()

const std::string& easemob::EMVideoMessageBody::thumbnailLocalPath ( ) const

Get local path of the thumbnail.

Parameters
NA
Returns
The local path.

§ thumbnailRemotePath()

const std::string& easemob::EMVideoMessageBody::thumbnailRemotePath ( ) const

Get remote path of the thumbnail.

Parameters
NA
Returns
The remote path.

§ thumbnailSecretKey()

const std::string& easemob::EMVideoMessageBody::thumbnailSecretKey ( ) const

Get secret key of the thumbnail.

Parameters
NA
Returns
The secret key.

The documentation for this class was generated from the following file: