POST | /api/Command/AddProspectCommand |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class AddProspectResult implements ICommandResult, IConvertible
{
int? MemberId;
bool? IsExistingMember;
String? MemberKey;
String? AppRegistrationId;
AddProspectResult({this.MemberId,this.IsExistingMember,this.MemberKey,this.AppRegistrationId});
AddProspectResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
MemberId = json['MemberId'];
IsExistingMember = json['IsExistingMember'];
MemberKey = json['MemberKey'];
AppRegistrationId = json['AppRegistrationId'];
return this;
}
Map<String, dynamic> toJson() => {
'MemberId': MemberId,
'IsExistingMember': IsExistingMember,
'MemberKey': MemberKey,
'AppRegistrationId': AppRegistrationId
};
getTypeName() => "AddProspectResult";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.clubmanagercentral.com', types: <String, TypeInfo> {
'AddProspectResult': TypeInfo(TypeOf.Class, create:() => AddProspectResult()),
});
Dart Command.AddProspectCommandRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/Command/AddProspectCommand HTTP/1.1
Host: api.clubmanagercentral.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Gender":"Unknown","Tags":["String"],"AgreedToTerms":false,"IsOnlineJoining":false,"PhotoPermission":false,"FirstAidPermission":false,"GiftAidPermission":false,"OptInEmail":false,"OptInSms":false,"OptInNotification":false,"OptInPostal":false,"OptInTelephone":false,"CustomAttributes":[{"CustomAttributeId":0,"CustomAttributeValueId":0,"InstanceId":0,"StoredValue":"String","TypeName":"String","ReadOnly":false}],"MemberId":0,"Title":"String","Forenames":"String","Surname":"String","CompanyName":"String","Address1":"String","Address2":"String","City":"String","County":"String","Country":"String","Postcode":"String","DateOfBirth":"0001-01-01T00:00:00.0000000","EmailAddress":"String","HomePhone":"String","MobilePhone":"String","EmergencyContact":"String","ParentName":"String","ParentSurname":"String","MedicalInformation":"String","Recaptcha":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"MemberId":0,"IsExistingMember":false,"MemberKey":"00000000000000000000000000000000","AppRegistrationId":"String"}