<back to all web services

NotificationStatusRequest

The following routes are available for this service:
GET/RestApi/comments-api/notifications
import 'package:servicestack/servicestack.dart';

class NotificationStatusRequest implements IConvertible
{
    String? ThreadKey;

    NotificationStatusRequest({this.ThreadKey});
    NotificationStatusRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ThreadKey = json['ThreadKey'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ThreadKey': ThreadKey
    };

    getTypeName() => "NotificationStatusRequest";
    TypeContext? context = _ctx;
}

class NotificationStatusResponse implements IConvertible
{
    bool? IsSubscribed;

    NotificationStatusResponse({this.IsSubscribed});
    NotificationStatusResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        IsSubscribed = json['IsSubscribed'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'IsSubscribed': IsSubscribed
    };

    getTypeName() => "NotificationStatusResponse";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
    'NotificationStatusRequest': TypeInfo(TypeOf.Class, create:() => NotificationStatusRequest()),
    'NotificationStatusResponse': TypeInfo(TypeOf.Class, create:() => NotificationStatusResponse()),
});

Dart NotificationStatusRequest DTOs

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

HTTP + CSV

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

GET /RestApi/comments-api/notifications HTTP/1.1 
Host: www.asg.com.au 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"IsSubscribed":false}