Six4Win.WebApi

<back to all web services

ResetStats

Requires Authentication
The following routes are available for this service:
POST/cmd/stats/reset
import 'package:servicestack/servicestack.dart';

class StatsResetOptions
{
    static const StatsResetOptions All = const StatsResetOptions._(0);
    static const StatsResetOptions Locations = const StatsResetOptions._(1);
    static const StatsResetOptions Bettors = const StatsResetOptions._(2);

    final int _value;
    const StatsResetOptions._(this._value);
    int get value => _value;
    static List<StatsResetOptions> get values => const [All,Locations,Bettors];
}

class ResetStats implements IConvertible
{
    String? id;
    StatsResetOptions? options;

    ResetStats({this.id,this.options});
    ResetStats.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        options = JsonConverters.fromJson(json['options'],'StatsResetOptions',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'options': JsonConverters.toJson(options,'StatsResetOptions',context!)
    };

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

TypeContext _ctx = TypeContext(library: 's4w2.api.bettor.cc', types: <String, TypeInfo> {
    'StatsResetOptions': TypeInfo(TypeOf.Enum, enumValues:StatsResetOptions.values),
    'ResetStats': TypeInfo(TypeOf.Class, create:() => ResetStats()),
});

Dart ResetStats 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 /cmd/stats/reset HTTP/1.1 
Host: s4w2.api.bettor.cc 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"id":"String","options":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}