Betting.WebApi

<back to all web services

GetUserNotifications

Requires Authentication
The following routes are available for this service:
All Verbs/qry/users/notifications
"use strict";
/** @typedef {number} */
export var Severity;
(function (Severity) {
    Severity[Severity["Success"] = 0] = "Success"
    Severity[Severity["Info"] = 1] = "Info"
    Severity[Severity["Warning"] = 2] = "Warning"
    Severity[Severity["Error"] = 3] = "Error"
})(Severity || (Severity = {}));
/** @typedef {number} */
export var NotificationType;
(function (NotificationType) {
    NotificationType[NotificationType["Default"] = 0] = "Default"
    NotificationType[NotificationType["SlipDeliveryConfirmationRequest"] = 1] = "SlipDeliveryConfirmationRequest"
    NotificationType[NotificationType["SlipDeliveryIssueResolved"] = 2] = "SlipDeliveryIssueResolved"
})(NotificationType || (NotificationType = {}));
export class Notification {
    /** @param {{severity?:Severity,type?:NotificationType,data?:RecordDictionary<string, string>}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {Severity} */
    severity;
    /** @type {NotificationType} */
    type;
    /** @type {RecordDictionary<string, string>} */
    data;
}
export class UserNotification {
    /** @param {{id?:string,notification?:Notification,dispatchedAt?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id;
    /** @type {Notification} */
    notification;
    /** @type {string} */
    dispatchedAt;
}
export class UserNotifications {
    /** @param {{id?:string,n?:number,s?:number,i?:number,w?:number,e?:number,notifications?:{ [index:string]: UserNotification; }}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id;
    /** @type {number} */
    n;
    /** @type {number} */
    s;
    /** @type {number} */
    i;
    /** @type {number} */
    w;
    /** @type {number} */
    e;
    /** @type {{ [index:string]: UserNotification; }} */
    notifications;
}
export class GetUserNotifications {
    /** @param {{id?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id;
}
class Dictionary {}
/** @typedef TKey {any} */
/** @typedef  TVal {any} */
export class RecordDictionary extends Dictionary {
    constructor(init) { super(init); Object.assign(this, init) }
}

JavaScript GetUserNotifications DTOs

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

HTTP + OTHER

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: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"id":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
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"}}}