@softvisio/core
Version:
Softisio core
35 lines (26 loc) • 562 B
JavaScript
import Media from "./media.js";
const TYPE = "voice",
SEND_METHOD = "sendVoice";
export default class extends Media {
#contentType;
constructor ( id, { fileId, contentType } = {} ) {
super( id, fileId );
this.#contentType = contentType;
}
// properties
get type () {
return TYPE;
}
get sendMethod () {
return SEND_METHOD;
}
// protected
_getJson () {
return {
"contentType": this.#contentType,
};
}
_toMessage () {
return {};
}
}