Class: TextEvent

TextEvent


new TextEvent()

A text event

Source:

Extends

Methods


del()

Delete the textEvent

Overrides:
  • NXMEvent#del
Source:
Returns:
Type
Promise
Example

Delete the textEvent

textEvent.del().then(() => {
   console.log("text event deleted");
 }).catch((error)=>{
	console.log("error deleting text event  ", error);
 });

delivered()

Set the textEvent status to 'delivered'.
handled by the SDK

Overrides:
  • NXMEvent#delivered
Source:
Returns:
Type
Promise
Example

Set the textEvent status to 'delivered'

textEvent.delivered().then(() => {
   console.log("text event status set to delivered");
 }).catch((error)=>{
	console.log("error setting text event status to delivered  ", error);
 });

seen()

Set the textEvent status to 'seen'

Overrides:
  • NXMEvent#seen
Source:
Returns:
Type
Promise
Example

Set the textEvent status to 'seen'

textEvent.seen().then(() => {
   console.log("text event status set to seen");
 }).catch((error)=>{
	console.log("error setting text event status to seen ", error);
 });