displayText method
dynamic
displayText(
- String text
)
Implementation
displayText(String text) async {
AeaRequestRequest req = AeaRequestRequest(
messageID: currentMessageID, texts: ["MG#B#A$text"], binaries: []);
String displayResXML = await send(xml: req.toXML());
AeaResponseResponse displayRes = AeaResponseResponse.fromXML(displayResXML);
if (displayRes.result.toLowerCase() == "ok") {
return CuppsCommandResponse(
msg: "Message Displayed Successfully", status: true);
} else {
return CuppsCommandResponse(msg: displayRes.result, status: false);
}
}