Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports IDB.API.DTO.Registrationprofile.Operations
Imports IDB.API.DTO.Registrationprofile
Imports IDB.Diagnostics
Imports IDB.Core.Diagnostics.Interfaces
Imports IDB.Core.Diagnostics
Namespace Global
Namespace IDB.API.DTO.Registrationprofile
Public Partial Class RegistrationProfileFieldStateBase
Public Overridable Property DocumentFieldID As Guid
Public Overridable Property Required As Boolean
Public Overridable Property Visible As Boolean
Public Overridable Property Readonly As Boolean
End Class
Public Partial Class RegistrationProfileFieldStates
Public Sub New()
ControlStates = New List(Of RegistrationProfileFieldStateBase)
DependentFieldsControlStates = New List(Of RegistrationProfileFieldStateBase)
End Sub
Public Overridable Property ReadOnly As Boolean
Public Overridable Property Messages As InformationMessages
Public Overridable Property ControlStates As List(Of RegistrationProfileFieldStateBase)
Public Overridable Property DependentFieldsControlStates As List(Of RegistrationProfileFieldStateBase)
End Class
Public Partial Class RegistrationProfileFieldValue
Public Overridable Property DocumentFieldID As Guid
Public Overridable Property Value As String
Public Overridable Property ShadowValue As String
Public Overridable Property IsModifiedByUser As Boolean
End Class
End Namespace
Namespace IDB.API.DTO.Registrationprofile.Operations
Public Partial Class GetRegistrationprofileFieldStates
Public Sub New()
RequestTriggeredByDependentDocumentFieldIds = New List(Of Guid)
CurrentRegistrationprofileFieldValues = New List(Of RegistrationProfileFieldValue)
End Sub
Public Overridable Property RegistrationprofileID As Guid
Public Overridable Property DocumentID As Nullable(Of Guid)
Public Overridable Property QueueDocumentID As Nullable(Of Integer)
Public Overridable Property StandardDocumentID As Nullable(Of Guid)
Public Overridable Property RequestTriggeredByDependentDocumentFieldIds As List(Of Guid)
Public Overridable Property CurrentRegistrationprofileFieldValues As List(Of RegistrationProfileFieldValue)
Public Overridable Property IsOffice365Context As Boolean
Public Overridable Property IsOpenedFromNonDMSLocation As Nullable(Of Boolean)
Public Overridable Property PidTag As String
End Class
End Namespace
Namespace IDB.Core.Diagnostics
Public Enum MessageType
Information = 1
Warning = 2
[Error] = 3
Success = 4
End Enum
End Namespace
Namespace IDB.Core.Diagnostics.Interfaces
Public Partial Class InformationMessageBase
Implements IInformationMessage
Public Overridable Property Type As MessageType
Public Overridable Property Summary As String
Public Overridable Property FullMessage As String
Public Overridable Property FieldName As String
Public Overridable Property KeepOpen As Boolean
End Class
End Namespace
Namespace IDB.Diagnostics
Public Partial Class InformationMessages
Inherits List(Of InformationMessageBase)
Implements IInformationMessages
End Class
End Namespace
End Namespace
VB.NET GetRegistrationprofileFieldStates 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/GetRegistrationprofileFieldStates HTTP/1.1
Host: digiofficeapigateway.deltares.nl
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetRegistrationprofileFieldStates xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDB.API.DTO.Registrationprofile.Operations">
<CurrentRegistrationprofileFieldValues xmlns:d2p1="http://schemas.datacontract.org/2004/07/IDB.API.DTO.Registrationprofile">
<d2p1:RegistrationProfileFieldValue>
<d2p1:DocumentFieldID>00000000-0000-0000-0000-000000000000</d2p1:DocumentFieldID>
<d2p1:IsModifiedByUser>false</d2p1:IsModifiedByUser>
<d2p1:ShadowValue>String</d2p1:ShadowValue>
<d2p1:Value>String</d2p1:Value>
</d2p1:RegistrationProfileFieldValue>
</CurrentRegistrationprofileFieldValues>
<DocumentID>00000000-0000-0000-0000-000000000000</DocumentID>
<IsOffice365Context>false</IsOffice365Context>
<IsOpenedFromNonDMSLocation>false</IsOpenedFromNonDMSLocation>
<PidTag>String</PidTag>
<QueueDocumentID>0</QueueDocumentID>
<RegistrationprofileID>00000000-0000-0000-0000-000000000000</RegistrationprofileID>
<RequestTriggeredByDependentDocumentFieldIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>00000000-0000-0000-0000-000000000000</d2p1:guid>
</RequestTriggeredByDependentDocumentFieldIds>
<StandardDocumentID>00000000-0000-0000-0000-000000000000</StandardDocumentID>
</GetRegistrationprofileFieldStates>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <RegistrationProfileFieldStates xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDB.API.DTO.Registrationprofile"> <ControlStates> <RegistrationProfileFieldStateBase> <DocumentFieldID>00000000-0000-0000-0000-000000000000</DocumentFieldID> <Readonly>false</Readonly> <Required>false</Required> <Visible>false</Visible> </RegistrationProfileFieldStateBase> </ControlStates> <DependentFieldsControlStates> <RegistrationProfileFieldStateBase> <DocumentFieldID>00000000-0000-0000-0000-000000000000</DocumentFieldID> <Readonly>false</Readonly> <Required>false</Required> <Visible>false</Visible> </RegistrationProfileFieldStateBase> </DependentFieldsControlStates> <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/IDB.Core.Diagnostics.Interfaces"> <d2p1:InformationMessageBase i:nil="true" /> </Messages> <ReadOnly>false</ReadOnly> </RegistrationProfileFieldStates>