DigiOffice Gateway Web Services

<back to all web services

EmailSentNotification

The following routes are available for this service:
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.*;

public class dtos
{

    public static class EmailSentNotification
    {
        public ArrayList<NotificationData> Value = null;
        
        public ArrayList<NotificationData> getValue() { return Value; }
        public EmailSentNotification setValue(ArrayList<NotificationData> value) { this.Value = value; return this; }
    }

    public static class NotificationData
    {
        public String ChangeType = null;
        public String ClientState = null;
        public String Resource = null;
        public ResourceData ResourceData = null;
        public Date SubscriptionExpirationDateTime = null;
        public String SubscriptionId = null;
        public String TenantId = null;
        
        public String getChangeType() { return ChangeType; }
        public NotificationData setChangeType(String value) { this.ChangeType = value; return this; }
        public String getClientState() { return ClientState; }
        public NotificationData setClientState(String value) { this.ClientState = value; return this; }
        public String getResource() { return Resource; }
        public NotificationData setResource(String value) { this.Resource = value; return this; }
        public ResourceData getResourceData() { return ResourceData; }
        public NotificationData setResourceData(ResourceData value) { this.ResourceData = value; return this; }
        public Date getSubscriptionExpirationDateTime() { return SubscriptionExpirationDateTime; }
        public NotificationData setSubscriptionExpirationDateTime(Date value) { this.SubscriptionExpirationDateTime = value; return this; }
        public String getSubscriptionId() { return SubscriptionId; }
        public NotificationData setSubscriptionId(String value) { this.SubscriptionId = value; return this; }
        public String getTenantId() { return TenantId; }
        public NotificationData setTenantId(String value) { this.TenantId = value; return this; }
    }

    @DataContract
    public static class ResourceData
    {
        @DataMember(Name="@odata.etag")
        @SerializedName("@odata.etag")
        public String ODataEtag = null;

        @DataMember(Name="@odata.id")
        @SerializedName("@odata.id")
        public String ODataId = null;

        @DataMember(Name="@odata.type")
        @SerializedName("@odata.type")
        public String ODataType = null;

        @DataMember(Name="id")
        @SerializedName("id")
        public String Id = null;
        
        public String getODataEtag() { return ODataEtag; }
        public ResourceData setODataEtag(String value) { this.ODataEtag = value; return this; }
        public String getODataId() { return ODataId; }
        public ResourceData setODataId(String value) { this.ODataId = value; return this; }
        public String getODataType() { return ODataType; }
        public ResourceData setODataType(String value) { this.ODataType = value; return this; }
        public String getId() { return Id; }
        public ResourceData setId(String value) { this.Id = value; return this; }
    }

    public static interface IResponse
    {
        public Object OriginalResponse = null;
        public IRequest Request = null;
        public Integer StatusCode = null;
        public String StatusDescription = null;
        public String ContentType = null;
        public InputStream OutputStream = null;
        public Object Dto = null;
        public Boolean UseBufferedStream = null;
        public Boolean IsClosed = null;
        public Boolean KeepAlive = null;
        public Boolean HasStarted = null;
        public HashMap<String,Object> Items = null;
    }

    public static interface IRequest
    {
        public Object OriginalRequest = null;
        public IResponse Response = null;
        public String OperationName = null;
        public String Verb = null;
        public RequestAttributes RequestAttributes = null;
        public IRequestPreferences RequestPreferences = null;
        public Object Dto = null;
        public String ContentType = null;
        public Boolean IsLocal = null;
        public String UserAgent = null;
        public HashMap<String,Cookie> Cookies = null;
        public String ResponseContentType = null;
        public Boolean HasExplicitResponseContentType = null;
        public HashMap<String,Object> Items = null;
        public NameValueCollection Headers = null;
        public NameValueCollection QueryString = null;
        public NameValueCollection FormData = null;
        public Boolean UseBufferedStream = null;
        public String RawUrl = null;
        public String AbsoluteUri = null;
        public String UserHostAddress = null;
        public String RemoteIp = null;
        public String Authorization = null;
        public Boolean IsSecureConnection = null;
        public ArrayList<String> AcceptTypes = null;
        public String PathInfo = null;
        public String OriginalPathInfo = null;
        public InputStream InputStream = null;
        public Long ContentLength = null;
        public ArrayList<IHttpFile> Files = null;
        public Uri UrlReferrer = null;
    }

    @Flags()
    public static enum RequestAttributes
    {
        @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);

        private final int value;
        RequestAttributes(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    public static interface IRequestPreferences
    {
        public Boolean AcceptsBrotli = null;
        public Boolean AcceptsDeflate = null;
        public Boolean AcceptsGzip = null;
    }

    public static interface IHttpFile
    {
        public String Name = null;
        public String FileName = null;
        public Long ContentLength = null;
        public String ContentType = null;
        public InputStream InputStream = null;
    }

}

Java EmailSentNotification DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + 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: dogw.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 instance of an interface.