| POST | /notification/send-incomplete-resubmittable-form-email/ |
|---|
import 'package:servicestack/servicestack.dart';
class EmailAddress implements IConvertible
{
String? displayName;
String? address;
EmailAddress({this.displayName,this.address});
EmailAddress.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
displayName = json['displayName'];
address = json['address'];
return this;
}
Map<String, dynamic> toJson() => {
'displayName': displayName,
'address': address
};
getTypeName() => "EmailAddress";
TypeContext? context = _ctx;
}
class SendIncompleteResubmittableFormEmailResponse implements IConvertible
{
int? incompleteResubmittabFormCount;
ResponseStatus? responseStatus;
String? result;
String? subject;
List<EmailAddress>? toAddresses;
List<EmailAddress>? ccAddresses;
List<EmailAddress>? bccAddresses;
EmailAddress? fromAddress;
SendIncompleteResubmittableFormEmailResponse({this.incompleteResubmittabFormCount,this.responseStatus,this.result,this.subject,this.toAddresses,this.ccAddresses,this.bccAddresses,this.fromAddress});
SendIncompleteResubmittableFormEmailResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
incompleteResubmittabFormCount = json['incompleteResubmittabFormCount'];
responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
result = json['result'];
subject = json['subject'];
toAddresses = JsonConverters.fromJson(json['toAddresses'],'List<EmailAddress>',context!);
ccAddresses = JsonConverters.fromJson(json['ccAddresses'],'List<EmailAddress>',context!);
bccAddresses = JsonConverters.fromJson(json['bccAddresses'],'List<EmailAddress>',context!);
fromAddress = JsonConverters.fromJson(json['fromAddress'],'EmailAddress',context!);
return this;
}
Map<String, dynamic> toJson() => {
'incompleteResubmittabFormCount': incompleteResubmittabFormCount,
'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!),
'result': result,
'subject': subject,
'toAddresses': JsonConverters.toJson(toAddresses,'List<EmailAddress>',context!),
'ccAddresses': JsonConverters.toJson(ccAddresses,'List<EmailAddress>',context!),
'bccAddresses': JsonConverters.toJson(bccAddresses,'List<EmailAddress>',context!),
'fromAddress': JsonConverters.toJson(fromAddress,'EmailAddress',context!)
};
getTypeName() => "SendIncompleteResubmittableFormEmailResponse";
TypeContext? context = _ctx;
}
// @ApiResponse(Description="Unauthorized.", StatusCode=401)
// @ApiResponse(Description="Forbidden.", StatusCode=403)
// @ApiResponse(Description="Bad Request.", StatusCode=400)
// @ApiResponse(Description="Internal Server Error.", StatusCode=500)
class SendIncompleteResubmittableFormEmail implements IConvertible
{
SendIncompleteResubmittableFormEmail();
SendIncompleteResubmittableFormEmail.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "SendIncompleteResubmittableFormEmail";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'notifications.breastcancertrials.org.au', types: <String, TypeInfo> {
'EmailAddress': TypeInfo(TypeOf.Class, create:() => EmailAddress()),
'SendIncompleteResubmittableFormEmailResponse': TypeInfo(TypeOf.Class, create:() => SendIncompleteResubmittableFormEmailResponse()),
'List<EmailAddress>': TypeInfo(TypeOf.Class, create:() => <EmailAddress>[]),
'SendIncompleteResubmittableFormEmail': TypeInfo(TypeOf.Class, create:() => SendIncompleteResubmittableFormEmail()),
});
Dart SendIncompleteResubmittableFormEmail DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /notification/send-incomplete-resubmittable-form-email/ HTTP/1.1
Host: notifications.breastcancertrials.org.au
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"incompleteResubmittabFormCount":0,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"result":"String","subject":"String","toAddresses":[{"displayName":"String","address":"String"}],"ccAddresses":[{"displayName":"String","address":"String"}],"bccAddresses":[{"displayName":"String","address":"String"}],"fromAddress":{"displayName":"String","address":"String"}}