TicketUserServices

<back to all web services

GetKSIFixture

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
GET POST/ksiFixture/{Id}
import 'package:servicestack/servicestack.dart';

class ksiMirrorForTickets implements IConvertible
{
    int? ksiGameID;
    DateTime? ksiGameDateTime;
    int? ksiTeamHomeID;
    String? ksiTeamHomeName;
    int? ksiTeamAwayID;
    String? ksiTeamAwayName;
    String? ksiStadiumName;
    int? ksiCompetitionID;
    int? ksiGroupId;
    int? ksiGenderId;
    String? ksiSkyrslaStada;
    String? externalIdType;

    ksiMirrorForTickets({this.ksiGameID,this.ksiGameDateTime,this.ksiTeamHomeID,this.ksiTeamHomeName,this.ksiTeamAwayID,this.ksiTeamAwayName,this.ksiStadiumName,this.ksiCompetitionID,this.ksiGroupId,this.ksiGenderId,this.ksiSkyrslaStada,this.externalIdType});
    ksiMirrorForTickets.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ksiGameID = json['ksiGameID'];
        ksiGameDateTime = JsonConverters.fromJson(json['ksiGameDateTime'],'DateTime',context!);
        ksiTeamHomeID = json['ksiTeamHomeID'];
        ksiTeamHomeName = json['ksiTeamHomeName'];
        ksiTeamAwayID = json['ksiTeamAwayID'];
        ksiTeamAwayName = json['ksiTeamAwayName'];
        ksiStadiumName = json['ksiStadiumName'];
        ksiCompetitionID = json['ksiCompetitionID'];
        ksiGroupId = json['ksiGroupId'];
        ksiGenderId = json['ksiGenderId'];
        ksiSkyrslaStada = json['ksiSkyrslaStada'];
        externalIdType = json['externalIdType'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ksiGameID': ksiGameID,
        'ksiGameDateTime': JsonConverters.toJson(ksiGameDateTime,'DateTime',context!),
        'ksiTeamHomeID': ksiTeamHomeID,
        'ksiTeamHomeName': ksiTeamHomeName,
        'ksiTeamAwayID': ksiTeamAwayID,
        'ksiTeamAwayName': ksiTeamAwayName,
        'ksiStadiumName': ksiStadiumName,
        'ksiCompetitionID': ksiCompetitionID,
        'ksiGroupId': ksiGroupId,
        'ksiGenderId': ksiGenderId,
        'ksiSkyrslaStada': ksiSkyrslaStada,
        'externalIdType': externalIdType
    };

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

class GetKSIFixture implements IConvertible
{
    int? id;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
    'ksiMirrorForTickets': TypeInfo(TypeOf.Class, create:() => ksiMirrorForTickets()),
    'GetKSIFixture': TypeInfo(TypeOf.Class, create:() => GetKSIFixture()),
});

Dart GetKSIFixture 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.

POST /ksiFixture/{Id} HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"id":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ksiGameID":0,"ksiGameDateTime":"0001-01-01T00:00:00.0000000","ksiTeamHomeID":0,"ksiTeamHomeName":"String","ksiTeamAwayID":0,"ksiTeamAwayName":"String","ksiStadiumName":"String","ksiCompetitionID":0,"ksiGroupId":0,"ksiGenderId":0,"ksiSkyrslaStada":"String","externalIdType":"String"}