namespace BctNotification.ServiceModel.Requests.Hangfire
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type EmailAddress() =
member val DisplayName:String = null with get,set
member val Address:String = null with get,set
[<AllowNullLiteral>]
type SendBctResolutionPendingEmailResponse() =
member val ResponseStatus:ResponseStatus = null with get,set
member val Result:String = null with get,set
member val Subject:String = null with get,set
member val ToAddresses:ResizeArray<EmailAddress> = new ResizeArray<EmailAddress>() with get,set
member val CcAddresses:ResizeArray<EmailAddress> = new ResizeArray<EmailAddress>() with get,set
member val BccAddresses:ResizeArray<EmailAddress> = new ResizeArray<EmailAddress>() with get,set
member val FromAddress:EmailAddress = null with get,set
[<AllowNullLiteral>]
type SendBctResolutionPendingEmail() =
interface IPost
[<Validate(Validator="NotNull")>]
member val TrialId:Nullable<Int32> = new Nullable<Int32>() with get,set
[<Validate(Validator="NotNull")>]
member val EffectiveDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
F# SendBctResolutionPendingEmail DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /json/reply/SendBctResolutionPendingEmail HTTP/1.1
Host: notifications.breastcancertrials.org.au
Accept: application/json
Content-Type: application/json
Content-Length: length
{"trialId":0,"effectiveDate":"0001-01-01T00:00:00.0000000"}
HTTP/1.1 200 OK
Content-Type: application/json
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"}}