ClubManager.Api

<back to all web services

Command.AddToTasterSessionCommandRequest

Requires Authentication
The following routes are available for this service:
POST/api/Command/AddToTasterSessionCommand
import 'package:servicestack/servicestack.dart';

class AddToTasterSessionResult implements ICommandResult, IConvertible
{
    String? MemberKey;
    String? AddToCalendarHtml;

    AddToTasterSessionResult({this.MemberKey,this.AddToCalendarHtml});
    AddToTasterSessionResult.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'api.clubmanagercentral.com', types: <String, TypeInfo> {
    'AddToTasterSessionResult': TypeInfo(TypeOf.Class, create:() => AddToTasterSessionResult()),
});

Dart Command.AddToTasterSessionCommandRequest 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 /api/Command/AddToTasterSessionCommand HTTP/1.1 
Host: api.clubmanagercentral.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"BookingId":0,"AgreedToTerms":false,"Tags":["String"],"Forenames":"String","Surname":"String","Email":"String","Mobile":"String","MedicalInformation":"String","DateOfBirth":"String","MemberName":"String","ParentSurname":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{Unable to show example output for type 'AddToTasterSessionResult' using the custom 'csv' filter}No parameterless constructor defined for this object.