Easemob Windows SDK
|
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 Size & | size () 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... | |
![]() | |
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... | |
![]() | |
EMMessageBody (EMMessageBodyType=TEXT) | |
Message body constructor. More... | |
virtual | ~EMMessageBody () |
Class destructor. More... | |
EMMessageBodyType | type () const |
Get message body type. More... | |
![]() | |
template<typename T > | |
T * | cast () |
Additional Inherited Members | |
![]() | |
enum | EMDownloadStatus { DOWNLOADING, SUCCESSED, FAILED, PENDING } |
![]() | |
enum | EMMessageBodyType { TEXT, IMAGE, VIDEO, LOCATION, VOICE, FILE, COMMAND } |
![]() | |
EMMessageBodyPrivate * | mBodyPrivate |
EMMessageBodyType | mType |
easemob::EMVideoMessageBody::EMVideoMessageBody | ( | ) |
Video message body constructor.
NA |
easemob::EMVideoMessageBody::EMVideoMessageBody | ( | const std::string & | localPath, |
const std::string & | thumbnailLocalPath | ||
) |
Video message body constructor.
Video | attachment local path. |
Video | thumbnail local path. |
|
virtual |
Class destructor.
NA |
int easemob::EMVideoMessageBody::duration | ( | ) | const |
Get playing duration of the video.
NA |
void easemob::EMVideoMessageBody::setDuration | ( | int | ) |
Set playing duration of the video.
The | video's playing duration. |
void easemob::EMVideoMessageBody::setSize | ( | const Size & | ) |
Set size of the video.
The | video's size. |
void easemob::EMVideoMessageBody::setThumbnailDownloadStatus | ( | EMDownloadStatus | ) |
Set download status of the thumbnail.
Note: Usually, user should NOT call this method directly.
The | download status. |
void easemob::EMVideoMessageBody::setThumbnailLocalPath | ( | const std::string & | ) |
Set local path of the thumbnail.
The | local path. |
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.
The | remote path. |
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.
The | secret key. |
const Size& easemob::EMVideoMessageBody::size | ( | ) | const |
Get size of the video.
NA |
EMDownloadStatus easemob::EMVideoMessageBody::thumbnailDownloadStatus | ( | ) | const |
Get download status of the thumbnail.
NA |
const std::string& easemob::EMVideoMessageBody::thumbnailLocalPath | ( | ) | const |
Get local path of the thumbnail.
NA |
const std::string& easemob::EMVideoMessageBody::thumbnailRemotePath | ( | ) | const |
Get remote path of the thumbnail.
NA |
const std::string& easemob::EMVideoMessageBody::thumbnailSecretKey | ( | ) | const |
Get secret key of the thumbnail.
NA |