getMessage method

Message getMessage()

Implementation

Message getMessage() {
  StringBuffer sb = StringBuffer();
  if (this.ws != null && this.ws!.isNotEmpty) {
    for (Ws? ws in this.ws!) {
      sb.write(ws!.cw![0].w);
    }
  }

  Message msg = Message();
  msg.sn = this.sn;
  msg.pgs = this.pgs;
  msg.rg = this.rg;
  msg.text = sb.toString();
  return msg;
}