| All Verbs | /qry/users/notifications |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class GetUserNotifications
{
public String id = null;
public String getId() { return id; }
public GetUserNotifications setId(String value) { this.id = value; return this; }
}
public static class UserNotifications
{
public String id = null;
public Integer n = null;
public Integer s = null;
public Integer i = null;
public Integer w = null;
public Integer e = null;
public HashMap<String,UserNotification> notifications = null;
public String getId() { return id; }
public UserNotifications setId(String value) { this.id = value; return this; }
public Integer getN() { return n; }
public UserNotifications setN(Integer value) { this.n = value; return this; }
public Integer getS() { return s; }
public UserNotifications setS(Integer value) { this.s = value; return this; }
public Integer getI() { return i; }
public UserNotifications setI(Integer value) { this.i = value; return this; }
public Integer getW() { return w; }
public UserNotifications setW(Integer value) { this.w = value; return this; }
public Integer getE() { return e; }
public UserNotifications setE(Integer value) { this.e = value; return this; }
public HashMap<String,UserNotification> getNotifications() { return notifications; }
public UserNotifications setNotifications(HashMap<String,UserNotification> value) { this.notifications = value; return this; }
}
public static class UserNotification
{
public String id = null;
public Notification notification = null;
public Date dispatchedAt = null;
public String getId() { return id; }
public UserNotification setId(String value) { this.id = value; return this; }
public Notification getNotification() { return notification; }
public UserNotification setNotification(Notification value) { this.notification = value; return this; }
public Date getDispatchedAt() { return dispatchedAt; }
public UserNotification setDispatchedAt(Date value) { this.dispatchedAt = value; return this; }
}
public static class Notification
{
public Severity severity = null;
public NotificationType type = null;
public RecordDictionary<String, String> data = null;
public Severity getSeverity() { return severity; }
public Notification setSeverity(Severity value) { this.severity = value; return this; }
public NotificationType getType() { return type; }
public Notification setType(NotificationType value) { this.type = value; return this; }
public RecordDictionary<String, String> getData() { return data; }
public Notification setData(RecordDictionary<String, String> value) { this.data = value; return this; }
}
public static enum Severity
{
@SerializedName("0") Success(0),
@SerializedName("1") Info(1),
@SerializedName("2") Warning(2),
@SerializedName("3") Error(3);
private final int value;
Severity(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static enum NotificationType
{
@SerializedName("0") Default(0),
@SerializedName("1") SlipDeliveryConfirmationRequest(1),
@SerializedName("2") SlipDeliveryIssueResolved(2);
private final int value;
NotificationType(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class RecordDictionary<TKey, TVal> extends HashMap<TKey,TVal>
{
}
}
Java GetUserNotifications 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 /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"}}}