@jaricardodev/ews-javascript-api
Version:
EWS Managed api in JavaScript
22 lines (20 loc) • 601 B
text/typescript
import {BodyType} from "../Enumerations/BodyType";
import {MessageBody} from "./MessageBody";
/**
* Represents the body of a message.
*/
export class TextBody extends MessageBody {
/**
* Initializes a new instance of the **TextBody** class.
*/
constructor();
/**
* Initializes a new instance of the **TextBody** class.
*
* @param {string} text The text of the message body.
*/
constructor(text: string);
constructor(text: string = null) {
arguments.length === 0 ? super() : super(BodyType.Text, text);
}
}