| All Verbs | /nodes/chat-events/new-message | 
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Voice.Api.Nodes.Messaging
Namespace Global
    Namespace Voice.Api.Nodes.Messaging
        Public Partial Class ChatEventsNodeNewMessageCallback
            Public Overridable Property AccountId As String
            Public Overridable Property EndpointId As String
            Public Overridable Property SessionId As String
            Public Overridable Property Body As String
            Public Overridable Property Sender As String
            Public Overridable Property SenderDisplayName As String
            Public Overridable Property AttachmentUri As String
            Public Overridable Property AttachmentContentType As String
            Public Overridable Property NewMessage As String
            Public Overridable Property NewMessageBody As String
            Public Overridable Property NewMessageSender As String
        End Class
    End Namespace
End Namespace
VB.NET ChatEventsNodeNewMessageCallback DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /nodes/chat-events/new-message HTTP/1.1 
Host: evovoice.io 
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ChatEventsNodeNewMessageCallback xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api.Nodes.Messaging">
  <AccountId>String</AccountId>
  <AttachmentContentType>String</AttachmentContentType>
  <AttachmentUri>String</AttachmentUri>
  <Body>String</Body>
  <EndpointId>String</EndpointId>
  <NewMessage>String</NewMessage>
  <NewMessageBody>String</NewMessageBody>
  <NewMessageSender>String</NewMessageSender>
  <Sender>String</Sender>
  <SenderDisplayName>String</SenderDisplayName>
  <SessionId>String</SessionId>
</ChatEventsNodeNewMessageCallback>