Betting.WebApi

<back to all web services

GetUserNotifications

Requires Authentication
The following routes are available for this service:
All Verbs/qry/users/notifications
namespace Betting.WebApi.ServiceModel

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    type Severity =
        | Success = 0
        | Info = 1
        | Warning = 2
        | Error = 3

    type NotificationType =
        | Default = 0
        | SlipDeliveryConfirmationRequest = 1
        | SlipDeliveryIssueResolved = 2

    [<AllowNullLiteral>]
    type Notification() = 
        member val Severity:Severity = new Severity() with get,set
        member val Type:NotificationType = new NotificationType() with get,set
        member val Data:RecordDictionary<String, String> = null with get,set

    [<AllowNullLiteral>]
    type UserNotification() = 
        member val Id:String = null with get,set
        member val Notification:Notification = null with get,set
        member val DispatchedAt:DateTime = new DateTime() with get,set

    [<AllowNullLiteral>]
    type UserNotifications() = 
        member val Id:String = null with get,set
        member val N:Int32 = new Int32() with get,set
        member val S:Int32 = new Int32() with get,set
        member val I:Int32 = new Int32() with get,set
        member val W:Int32 = new Int32() with get,set
        member val E:Int32 = new Int32() with get,set
        member val Notifications:Dictionary<String, UserNotification> = null with get,set

    [<AllowNullLiteral>]
    type GetUserNotifications() = 
        member val Id:String = null with get,set

    [<AllowNullLiteral>]
    type RecordDictionary<TKey, TVal>() = 
        inherit Dictionary<TKey, TVal>()

F# GetUserNotifications 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

HTTP + JSON

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

POST /qry/users/notifications HTTP/1.1 
Host: api.sbbet.ath.cx 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"id":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"id":"String","n":1,"s":1,"i":0,"w":0,"e":0,"notifications":{"String":{"id":"String","notification":{"severity":0,"type":0,"data":{"String":"String"}},"dispatchedAt":"0001-01-01T00:00:00.0000000Z"}}}