using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using IDB.API.DTO.Outlook.Operations;
using IDB.API.DTO.Registrationprofile;
using IDB.API.DTO.Workflow;
using IDB.API.DTO.Outlook;
namespace IDB.API.DTO.Outlook
{
public partial class CorporateIdentityMail
{
public CorporateIdentityMail()
{
Values = new List<RegistrationProfileFieldStateBase>{};
}
public virtual Guid DocumentId { get; set; }
public virtual string EmailHtml { get; set; }
public virtual bool IsRegistered { get; set; }
public virtual string DocumentNr { get; set; }
public virtual List<RegistrationProfileFieldStateBase> Values { get; set; }
public virtual Guid RegistrationProfileID { get; set; }
public virtual bool RegisterAutomatically { get; set; }
}
}
namespace IDB.API.DTO.Outlook.Operations
{
public partial class CreateDraftCorporateIdentityMail
: Outlook365Properties
{
public CreateDraftCorporateIdentityMail()
{
Values = new List<RegistrationValue>{};
Processes = new List<Process>{};
}
public virtual Guid RegistrationProfileID { get; set; }
public virtual List<RegistrationValue> Values { get; set; }
public virtual List<Process> Processes { get; set; }
public virtual string DocumentUploadId { get; set; }
public virtual string MessageQueueId { get; set; }
public virtual string ReplyEmailHtml { get; set; }
}
public partial class Outlook365Properties
{
public virtual string PidTag { get; set; }
public virtual string ItemId { get; set; }
public virtual string EwsUrl { get; set; }
public virtual string Token { get; set; }
}
}
namespace IDB.API.DTO.Registrationprofile
{
public partial class RegistrationProfileFieldStateBase
{
public virtual Guid DocumentFieldID { get; set; }
public virtual bool Required { get; set; }
public virtual bool Visible { get; set; }
public virtual bool Readonly { get; set; }
}
public partial class RegistrationValue
{
public virtual Guid Key { get; set; }
public virtual string Value { get; set; }
public virtual string ShadowValue { get; set; }
}
}
namespace IDB.API.DTO.Workflow
{
public partial class Process
{
public Process()
{
Transitions = new List<Transition>{};
}
public virtual int ID { get; set; }
public virtual string Title { get; set; }
public virtual string Description { get; set; }
public virtual string Note { get; set; }
public virtual string Coordinator { get; set; }
public virtual bool Urgent { get; set; }
public virtual List<Transition> Transitions { get; set; }
}
public partial class Transition
{
public Transition()
{
UserIDs = new List<int>{};
GroupIDs = new List<int>{};
}
public virtual Guid ID { get; set; }
public virtual string Reason { get; set; }
public virtual DateTime? DelayDate { get; set; }
public virtual string DelayReason { get; set; }
public virtual List<int> UserIDs { get; set; }
public virtual List<int> GroupIDs { get; set; }
}
}
C# CreateDraftCorporateIdentityMail 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 /xml/reply/CreateDraftCorporateIdentityMail HTTP/1.1
Host: digiofficeapigateway.deltares.nl
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CreateDraftCorporateIdentityMail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDB.API.DTO.Outlook.Operations">
<EwsUrl>String</EwsUrl>
<ItemId>String</ItemId>
<PidTag>String</PidTag>
<Token>String</Token>
<DocumentUploadId>String</DocumentUploadId>
<MessageQueueId>String</MessageQueueId>
<Processes xmlns:d2p1="http://schemas.datacontract.org/2004/07/IDB.API.DTO.Workflow">
<d2p1:Process>
<d2p1:Coordinator>String</d2p1:Coordinator>
<d2p1:Description>String</d2p1:Description>
<d2p1:ID>0</d2p1:ID>
<d2p1:Note>String</d2p1:Note>
<d2p1:Title>String</d2p1:Title>
<d2p1:Transitions>
<d2p1:Transition>
<d2p1:DelayDate>0001-01-01T00:00:00</d2p1:DelayDate>
<d2p1:DelayReason>String</d2p1:DelayReason>
<d2p1:GroupIDs xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:int>0</d6p1:int>
</d2p1:GroupIDs>
<d2p1:ID>00000000-0000-0000-0000-000000000000</d2p1:ID>
<d2p1:Reason>String</d2p1:Reason>
<d2p1:UserIDs xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:int>0</d6p1:int>
</d2p1:UserIDs>
</d2p1:Transition>
</d2p1:Transitions>
<d2p1:Urgent>false</d2p1:Urgent>
</d2p1:Process>
</Processes>
<RegistrationProfileID>00000000-0000-0000-0000-000000000000</RegistrationProfileID>
<ReplyEmailHtml>String</ReplyEmailHtml>
<Values xmlns:d2p1="http://schemas.datacontract.org/2004/07/IDB.API.DTO.Registrationprofile">
<d2p1:RegistrationValue>
<d2p1:Key>00000000-0000-0000-0000-000000000000</d2p1:Key>
<d2p1:ShadowValue>String</d2p1:ShadowValue>
<d2p1:Value>String</d2p1:Value>
</d2p1:RegistrationValue>
</Values>
</CreateDraftCorporateIdentityMail>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <CorporateIdentityMail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDB.API.DTO.Outlook"> <DocumentId>00000000-0000-0000-0000-000000000000</DocumentId> <DocumentNr>String</DocumentNr> <EmailHtml>String</EmailHtml> <IsRegistered>false</IsRegistered> <RegisterAutomatically>false</RegisterAutomatically> <RegistrationProfileID>00000000-0000-0000-0000-000000000000</RegistrationProfileID> <Values xmlns:d2p1="http://schemas.datacontract.org/2004/07/IDB.API.DTO.Registrationprofile"> <d2p1:RegistrationProfileFieldStateBase> <d2p1:DocumentFieldID>00000000-0000-0000-0000-000000000000</d2p1:DocumentFieldID> <d2p1:Readonly>false</d2p1:Readonly> <d2p1:Required>false</d2p1:Required> <d2p1:Visible>false</d2p1:Visible> </d2p1:RegistrationProfileFieldStateBase> </Values> </CorporateIdentityMail>