Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
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()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<GetKSIFixture xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Id>0</Id>
</GetKSIFixture>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ksiMirrorForTickets xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types"> <ExternalIdType>String</ExternalIdType> <ksiCompetitionID>0</ksiCompetitionID> <ksiGameDateTime>0001-01-01T00:00:00</ksiGameDateTime> <ksiGameID>0</ksiGameID> <ksiGenderId>0</ksiGenderId> <ksiGroupId>0</ksiGroupId> <ksiSkyrslaStada>String</ksiSkyrslaStada> <ksiStadiumName>String</ksiStadiumName> <ksiTeamAwayID>0</ksiTeamAwayID> <ksiTeamAwayName>String</ksiTeamAwayName> <ksiTeamHomeID>0</ksiTeamHomeID> <ksiTeamHomeName>String</ksiTeamHomeName> </ksiMirrorForTickets>