/// <summary> /// Initializes a new instance of the <see cref="ChatMessage" /> class. /// </summary> /// <param name="Body">The message body.</param> /// <param name="Id">Id.</param> /// <param name="To">The message recipient.</param> /// <param name="From">The message sender.</param> /// <param name="Utc">Utc.</param> /// <param name="Chat">The interaction id (if available).</param> /// <param name="Message">The message id.</param> /// <param name="Type">Type.</param> /// <param name="BodyType">Type of the message body (v2 chats only).</param> /// <param name="User">The user information for the sender (if available).</param> public ChatMessage(string Body = null, string Id = null, string To = null, string From = null, string Utc = null, string Chat = null, string Message = null, string Type = null, BodyTypeEnum?BodyType = null, ChatMessageUser User = null) { this.Body = Body; this.Id = Id; this.To = To; this.From = From; this.Utc = Utc; this.Chat = Chat; this.Message = Message; this.Type = Type; this.BodyType = BodyType; this.User = User; }
/// <summary> /// Initializes a new instance of the <see cref="ChatMessage" /> class. /// </summary> /// <param name="Body">The message body.</param> /// <param name="Id">Id.</param> /// <param name="To">The message recipient.</param> /// <param name="From">The message sender.</param> /// <param name="Utc">Utc.</param> /// <param name="Chat">The interaction id (if available).</param> /// <param name="Message">The message id.</param> /// <param name="Type">Type.</param> /// <param name="BodyType">Type of the message body (v2 chats only).</param> /// <param name="SenderCommunicationId">Communication of sender (v2 chats only).</param> /// <param name="ParticipantPurpose">Participant purpose of sender (v2 chats only).</param> /// <param name="User">The user information for the sender (if available).</param> public ChatMessage(string Body = null, string Id = null, string To = null, string From = null, string Utc = null, string Chat = null, string Message = null, string Type = null, BodyTypeEnum?BodyType = null, string SenderCommunicationId = null, string ParticipantPurpose = null, ChatMessageUser User = null) { this.Body = Body; this.Id = Id; this.To = To; this.From = From; this.Utc = Utc; this.Chat = Chat; this.Message = Message; this.Type = Type; this.BodyType = BodyType; this.SenderCommunicationId = SenderCommunicationId; this.ParticipantPurpose = ParticipantPurpose; this.User = User; }