| Requires any of the roles: | Agent, Administrator, Agent, Administrator, Agent, Administrator, Agent, Administrator |
| GET,POST,PUT,DELETE,OPTIONS | /v1/ConversationNBCTypeSubscription/{ConversationNBCTypeSubscriptionId} | ||
|---|---|---|---|
| GET,POST,PUT,DELETE,OPTIONS | /v1/ConversationNBCTypeSubscription |
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class ConversationNBCTypeSubscription implements IConvertible
{
int? ConversationNBCTypeSubscriptionId;
int? ConversationNBCTypeId;
int? AgentId;
ConversationNBCTypeSubscription({this.ConversationNBCTypeSubscriptionId,this.ConversationNBCTypeId,this.AgentId});
ConversationNBCTypeSubscription.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ConversationNBCTypeSubscriptionId = json['ConversationNBCTypeSubscriptionId'];
ConversationNBCTypeId = json['ConversationNBCTypeId'];
AgentId = json['AgentId'];
return this;
}
Map<String, dynamic> toJson() => {
'ConversationNBCTypeSubscriptionId': ConversationNBCTypeSubscriptionId,
'ConversationNBCTypeId': ConversationNBCTypeId,
'AgentId': AgentId
};
getTypeName() => "ConversationNBCTypeSubscription";
TypeContext? context = _ctx;
}
class ConversationNBCTypeSubscriptionExtended extends ConversationNBCTypeSubscription implements IConvertible
{
String? AgentName;
ConversationNBCTypeSubscriptionExtended({this.AgentName});
ConversationNBCTypeSubscriptionExtended.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
AgentName = json['AgentName'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'AgentName': AgentName
});
getTypeName() => "ConversationNBCTypeSubscriptionExtended";
TypeContext? context = _ctx;
}
class ConversationNBCTypeSubscriptionResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
List<ConversationNBCTypeSubscriptionExtended>? ConversationNBCTypeSubscription = [];
ConversationNBCTypeSubscriptionResponse({this.ResponseStatus,this.ConversationNBCTypeSubscription});
ConversationNBCTypeSubscriptionResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
ConversationNBCTypeSubscription = JsonConverters.fromJson(json['ConversationNBCTypeSubscription'],'List<ConversationNBCTypeSubscriptionExtended>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'ConversationNBCTypeSubscription': JsonConverters.toJson(ConversationNBCTypeSubscription,'List<ConversationNBCTypeSubscriptionExtended>',context!)
};
getTypeName() => "ConversationNBCTypeSubscriptionResponse";
TypeContext? context = _ctx;
}
class ConversationNBCTypeSubscriptionRequest implements IConvertible
{
List<ConversationNBCTypeSubscriptionExtended>? ConversationNBCTypeSubscription = [];
int? ConversationNBCTypeSubscriptionId;
ConversationNBCTypeSubscriptionRequest({this.ConversationNBCTypeSubscription,this.ConversationNBCTypeSubscriptionId});
ConversationNBCTypeSubscriptionRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ConversationNBCTypeSubscription = JsonConverters.fromJson(json['ConversationNBCTypeSubscription'],'List<ConversationNBCTypeSubscriptionExtended>',context!);
ConversationNBCTypeSubscriptionId = json['ConversationNBCTypeSubscriptionId'];
return this;
}
Map<String, dynamic> toJson() => {
'ConversationNBCTypeSubscription': JsonConverters.toJson(ConversationNBCTypeSubscription,'List<ConversationNBCTypeSubscriptionExtended>',context!),
'ConversationNBCTypeSubscriptionId': ConversationNBCTypeSubscriptionId
};
getTypeName() => "ConversationNBCTypeSubscriptionRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'ConversationNBCTypeSubscription': TypeInfo(TypeOf.Class, create:() => ConversationNBCTypeSubscription()),
'ConversationNBCTypeSubscriptionExtended': TypeInfo(TypeOf.Class, create:() => ConversationNBCTypeSubscriptionExtended()),
'ConversationNBCTypeSubscriptionResponse': TypeInfo(TypeOf.Class, create:() => ConversationNBCTypeSubscriptionResponse()),
'List<ConversationNBCTypeSubscriptionExtended>': TypeInfo(TypeOf.Class, create:() => <ConversationNBCTypeSubscriptionExtended>[]),
'ConversationNBCTypeSubscriptionRequest': TypeInfo(TypeOf.Class, create:() => ConversationNBCTypeSubscriptionRequest()),
});
Dart ConversationNBCTypeSubscriptionRequest 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 /v1/ConversationNBCTypeSubscription/{ConversationNBCTypeSubscriptionId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ConversationNBCTypeSubscription:
[
{
AgentName: String,
ConversationNBCTypeSubscriptionId: 0,
ConversationNBCTypeId: 0,
AgentId: 0
}
],
ConversationNBCTypeSubscriptionId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
ConversationNBCTypeSubscription:
[
{
AgentName: String,
ConversationNBCTypeSubscriptionId: 0,
ConversationNBCTypeId: 0,
AgentId: 0
}
]
}