Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BctNotification.ServiceModel.Requests.Hangfire
Imports BctNotification.ServiceModel.Types
Namespace Global
Namespace BctNotification.ServiceModel.Requests.Hangfire
Public Partial Class SendFormsIncompleteEmail
Implements IPost
End Class
Public Partial Class SendFormsIncompleteEmailResponse
Public Sub New()
ToAddresses = New List(Of EmailAddress)
CcAddresses = New List(Of EmailAddress)
BccAddresses = New List(Of EmailAddress)
End Sub
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property Result As String
Public Overridable Property Subject As String
Public Overridable Property ToAddresses As List(Of EmailAddress)
Public Overridable Property CcAddresses As List(Of EmailAddress)
Public Overridable Property BccAddresses As List(Of EmailAddress)
Public Overridable Property FromAddress As EmailAddress
Public Overridable Property TrialEmailCount As Integer
Public Overridable Property EmailsSent As Integer
End Class
End Namespace
Namespace BctNotification.ServiceModel.Types
Public Partial Class EmailAddress
Public Overridable Property DisplayName As String
Public Overridable Property Address As String
End Class
End Namespace
End Namespace
VB.NET SendFormsIncompleteEmail 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 /jsonl/reply/SendFormsIncompleteEmail HTTP/1.1
Host: notifications.breastcancertrials.org.au
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"result":"String","subject":"String","toAddresses":[{"displayName":"String","address":"String"}],"ccAddresses":[{"displayName":"String","address":"String"}],"bccAddresses":[{"displayName":"String","address":"String"}],"fromAddress":{"displayName":"String","address":"String"},"trialEmailCount":0,"emailsSent":0}