public static ChatMessage createTextMessage(ContactId remote,String msg,long timestamp,long timestampSent){
  String msgId=IdGenerator.generateMessageID();
  return new ChatMessage(msgId,remote,msg,MimeType.TEXT_MESSAGE,timestamp,timestampSent,null);
}

public static ChatMessage createTextMessage ( ContactId remote , String msg , long timestamp , long timestampSent ) { String msgId = IdGenerator . generateMessageID ( ) ; return new ChatMessage ( msgId , remote , msg , MimeType . TEXT_MESSAGE , timestamp , timestampSent , null ) ; }
create a text message
