BctNotification

<back to all web services

SendSiteOpenQueryEmail

Requires Authentication
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 SendSiteOpenQueryEmailResponse() = 
        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
        member val count:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type SendSiteOpenQueryEmail() = 
        interface IPost
        [<Validate(Validator="NotNull")>]
        member val TrialId:Nullable<Int32> = new Nullable<Int32>() with get,set

        [<Validate(Validator="NotNull")>]
        member val InstCode:String = null with get,set

        [<Validate(Validator="NotNull")>]
        member val EffectiveDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set

F# SendSiteOpenQueryEmail DTOs

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

HTTP + X-PROTOBUF

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /x-protobuf/reply/SendSiteOpenQueryEmail HTTP/1.1 
Host: notifications.breastcancertrials.org.au 
Accept: application/x-protobuf
Content-Type: application/x-protobuf
Content-Length: length

{"trialId":0,"instCode":"String","effectiveDate":"0001-01-01T00:00:00.0000000"}
HTTP/1.1 200 OK
Content-Type: application/x-protobuf
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"},"count":0}