| All Verbs | /api/Outlook/EmailSentNotification |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports IDB.API.DTO.Outlook.Operations
Imports ServiceStack.Web
Namespace Global
Namespace IDB.API.DTO.Outlook.Operations
Public Partial Class EmailSentNotification
Public Overridable Property Value As List(Of NotificationData)
End Class
Public Partial Class NotificationData
Public Overridable Property ChangeType As String
Public Overridable Property ClientState As String
Public Overridable Property Resource As String
Public Overridable Property ResourceData As ResourceData
Public Overridable Property SubscriptionExpirationDateTime As Date
Public Overridable Property SubscriptionId As String
Public Overridable Property TenantId As String
End Class
<DataContract>
Public Partial Class ResourceData
<DataMember(Name:="@odata.etag")>
Public Overridable Property ODataEtag As String
<DataMember(Name:="@odata.id")>
Public Overridable Property ODataId As String
<DataMember(Name:="@odata.type")>
Public Overridable Property ODataType As String
<DataMember(Name:="id")>
Public Overridable Property Id As String
End Class
End Namespace
Namespace ServiceStack
<Flags>
Public Enum RequestAttributes
None = 0
Localhost = 1
LocalSubnet = 2
External = 4
Secure = 8
InSecure = 16
AnySecurityMode = 24
HttpHead = 32
HttpGet = 64
HttpPost = 128
HttpPut = 256
HttpDelete = 512
HttpPatch = 1024
HttpOptions = 2048
HttpOther = 4096
AnyHttpMethod = 8160
OneWay = 8192
Reply = 16384
AnyCallStyle = 24576
Soap11 = 32768
Soap12 = 65536
Xml = 131072
Json = 262144
Jsv = 524288
ProtoBuf = 1048576
Csv = 2097152
Html = 4194304
Jsonl = 8388608
MsgPack = 16777216
FormatOther = 33554432
AnyFormat = 67076096
Http = 67108864
MessageQueue = 134217728
Tcp = 268435456
Grpc = 536870912
EndpointOther = 1073741824
AnyEndpoint = 2080374784
InProcess = -2147483648
InternalNetworkAccess = -2147483645
AnyNetworkAccessType = -2147483641
Any = -1
End Enum
End Namespace
Namespace ServiceStack.Web
Public Interface IHttpFile
Property Name As String
Property FileName As String
Property ContentLength As Long
Property ContentType As String
Property InputStream As Stream
End Interface
Public Interface IRequest
Property OriginalRequest As Object
Property Response As IResponse
Property OperationName As String
Property Verb As String
Property RequestAttributes As RequestAttributes
Property RequestPreferences As IRequestPreferences
Property Dto As Object
Property ContentType As String
Property IsLocal As Boolean
Property UserAgent As String
Property Cookies As IDictionary(Of String, Cookie)
Property ResponseContentType As String
Property HasExplicitResponseContentType As Boolean
Property Items As Dictionary(Of String, Object)
Property Headers As NameValueCollection
Property QueryString As NameValueCollection
Property FormData As NameValueCollection
Property UseBufferedStream As Boolean
Property RawUrl As String
Property AbsoluteUri As String
Property UserHostAddress As String
Property RemoteIp As String
Property Authorization As String
Property IsSecureConnection As Boolean
Property AcceptTypes As String()
Property PathInfo As String
Property OriginalPathInfo As String
Property InputStream As Stream
Property ContentLength As Long
Property Files As IHttpFile()
Property UrlReferrer As Uri
End Interface
Public Interface IRequestPreferences
Property AcceptsBrotli As Boolean
Property AcceptsDeflate As Boolean
Property AcceptsGzip As Boolean
End Interface
Public Interface IResponse
Property OriginalResponse As Object
Property Request As IRequest
Property StatusCode As Integer
Property StatusDescription As String
Property ContentType As String
Property OutputStream As Stream
Property Dto As Object
Property UseBufferedStream As Boolean
Property IsClosed As Boolean
Property KeepAlive As Boolean
Property HasStarted As Boolean
Property Items As Dictionary(Of String, Object)
End Interface
End Namespace
End Namespace
VB.NET EmailSentNotification DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/Outlook/EmailSentNotification HTTP/1.1
Host: test-do-services.klokgroep.nl
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Value":[{"ChangeType":"String","ClientState":"String","Resource":"String","ResourceData":{"@odata.etag":"String","@odata.id":"String","@odata.type":"String","id":"String"},"SubscriptionExpirationDateTime":"0001-01-01T00:00:00.0000000","SubscriptionId":"String","TenantId":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{Unable to show example output for type 'IResponse' using the custom 'csv' filter}Cannot create an abstract class.