| Required role: | Admin |
| POST | /SurveyCampaign/{CampaignId}/MarkResponded |
|---|
import 'package:servicestack/servicestack.dart';
class SurveyMarkRespondedResult implements IConvertible
{
int? matched;
int? alreadyMarked;
int? unmatched;
List<String>? unmatchedUrls;
int? statusCode;
String? message;
SurveyMarkRespondedResult({this.matched,this.alreadyMarked,this.unmatched,this.unmatchedUrls,this.statusCode,this.message});
SurveyMarkRespondedResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
matched = json['matched'];
alreadyMarked = json['alreadyMarked'];
unmatched = json['unmatched'];
unmatchedUrls = JsonConverters.fromJson(json['unmatchedUrls'],'List<String>',context!);
statusCode = json['statusCode'];
message = json['message'];
return this;
}
Map<String, dynamic> toJson() => {
'matched': matched,
'alreadyMarked': alreadyMarked,
'unmatched': unmatched,
'unmatchedUrls': JsonConverters.toJson(unmatchedUrls,'List<String>',context!),
'statusCode': statusCode,
'message': message
};
getTypeName() => "SurveyMarkRespondedResult";
TypeContext? context = _ctx;
}
class SurveyMarkRespondedRequest implements IConvertible
{
int? campaignId;
List<String>? answeredUrls;
bool? markMissingAsUnanswered;
SurveyMarkRespondedRequest({this.campaignId,this.answeredUrls,this.markMissingAsUnanswered});
SurveyMarkRespondedRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
campaignId = json['campaignId'];
answeredUrls = JsonConverters.fromJson(json['answeredUrls'],'List<String>',context!);
markMissingAsUnanswered = json['markMissingAsUnanswered'];
return this;
}
Map<String, dynamic> toJson() => {
'campaignId': campaignId,
'answeredUrls': JsonConverters.toJson(answeredUrls,'List<String>',context!),
'markMissingAsUnanswered': markMissingAsUnanswered
};
getTypeName() => "SurveyMarkRespondedRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
'SurveyMarkRespondedResult': TypeInfo(TypeOf.Class, create:() => SurveyMarkRespondedResult()),
'SurveyMarkRespondedRequest': TypeInfo(TypeOf.Class, create:() => SurveyMarkRespondedRequest()),
});
Dart SurveyMarkRespondedRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /SurveyCampaign/{CampaignId}/MarkResponded HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
campaignId: 0,
answeredUrls:
[
String
],
markMissingAsUnanswered: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
matched: 0,
alreadyMarked: 0,
unmatched: 0,
unmatchedUrls:
[
String
],
statusCode: 0,
message: String
}