| All Verbs | /api/Outlook/EmailSentNotification |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
open class EmailSentNotification
{
open var Value:ArrayList<NotificationData>? = null
}
open class NotificationData
{
open var ChangeType:String? = null
open var ClientState:String? = null
open var Resource:String? = null
open var ResourceData:ResourceData? = null
open var SubscriptionExpirationDateTime:Date? = null
open var SubscriptionId:String? = null
open var TenantId:String? = null
}
@DataContract
open class ResourceData
{
@DataMember(Name="@odata.etag")
@SerializedName("@odata.etag")
open var ODataEtag:String? = null
@DataMember(Name="@odata.id")
@SerializedName("@odata.id")
open var ODataId:String? = null
@DataMember(Name="@odata.type")
@SerializedName("@odata.type")
open var ODataType:String? = null
@DataMember(Name="id")
@SerializedName("id")
open var Id:String? = null
}
interface IResponse
{
var OriginalResponse:Object?
var Request:IRequest?
var StatusCode:Int?
var StatusDescription:String?
var ContentType:String?
var OutputStream:InputStream?
var Dto:Object?
var UseBufferedStream:Boolean?
var IsClosed:Boolean?
var KeepAlive:Boolean?
var HasStarted:Boolean?
var Items:HashMap<String,Object>?
}
interface IRequest
{
var OriginalRequest:Object?
var Response:IResponse?
var OperationName:String?
var Verb:String?
var RequestAttributes:RequestAttributes?
var RequestPreferences:IRequestPreferences?
var Dto:Object?
var ContentType:String?
var IsLocal:Boolean?
var UserAgent:String?
var Cookies:HashMap<String,Cookie>?
var ResponseContentType:String?
var HasExplicitResponseContentType:Boolean?
var Items:HashMap<String,Object>?
var Headers:NameValueCollection?
var QueryString:NameValueCollection?
var FormData:NameValueCollection?
var UseBufferedStream:Boolean?
var RawUrl:String?
var AbsoluteUri:String?
var UserHostAddress:String?
var RemoteIp:String?
var Authorization:String?
var IsSecureConnection:Boolean?
var AcceptTypes:ArrayList<String>?
var PathInfo:String?
var OriginalPathInfo:String?
var InputStream:InputStream?
var ContentLength:Long?
var Files:ArrayList<IHttpFile>?
var UrlReferrer:Uri?
}
@Flags()
enum class RequestAttributes(val value:Int)
{
@SerializedName("0") None(0),
@SerializedName("1") Localhost(1),
@SerializedName("2") LocalSubnet(2),
@SerializedName("4") External(4),
@SerializedName("8") Secure(8),
@SerializedName("16") InSecure(16),
@SerializedName("24") AnySecurityMode(24),
@SerializedName("32") HttpHead(32),
@SerializedName("64") HttpGet(64),
@SerializedName("128") HttpPost(128),
@SerializedName("256") HttpPut(256),
@SerializedName("512") HttpDelete(512),
@SerializedName("1024") HttpPatch(1024),
@SerializedName("2048") HttpOptions(2048),
@SerializedName("4096") HttpOther(4096),
@SerializedName("8160") AnyHttpMethod(8160),
@SerializedName("8192") OneWay(8192),
@SerializedName("16384") Reply(16384),
@SerializedName("24576") AnyCallStyle(24576),
@SerializedName("32768") Soap11(32768),
@SerializedName("65536") Soap12(65536),
@SerializedName("131072") Xml(131072),
@SerializedName("262144") Json(262144),
@SerializedName("524288") Jsv(524288),
@SerializedName("1048576") ProtoBuf(1048576),
@SerializedName("2097152") Csv(2097152),
@SerializedName("4194304") Html(4194304),
@SerializedName("8388608") Jsonl(8388608),
@SerializedName("16777216") MsgPack(16777216),
@SerializedName("33554432") FormatOther(33554432),
@SerializedName("67076096") AnyFormat(67076096),
@SerializedName("67108864") Http(67108864),
@SerializedName("134217728") MessageQueue(134217728),
@SerializedName("268435456") Tcp(268435456),
@SerializedName("536870912") Grpc(536870912),
@SerializedName("1073741824") EndpointOther(1073741824),
@SerializedName("2080374784") AnyEndpoint(2080374784),
@SerializedName("-2147483648") InProcess(-2147483648),
@SerializedName("-2147483645") InternalNetworkAccess(-2147483645),
@SerializedName("-2147483641") AnyNetworkAccessType(-2147483641),
@SerializedName("-1") Any(-1),
}
interface IRequestPreferences
{
var AcceptsBrotli:Boolean?
var AcceptsDeflate:Boolean?
var AcceptsGzip:Boolean?
}
interface IHttpFile
{
var Name:String?
var FileName:String?
var ContentLength:Long?
var ContentType:String?
var InputStream:InputStream?
}
Kotlin EmailSentNotification DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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: dogw.klokgroep.nl
Accept: text/jsonl
Content-Type: text/jsonl
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/jsonl
Content-Length: length
{Unable to show example output for type 'IResponse' using the custom 'other' filter}Cannot create an instance of an interface.