import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class WorkflowTaskComment implements IComment, IConvertible
{
int? WorkflowTaskID;
int? UserID;
String? TaskTitle;
String? Connection;
String? Username;
String? Text;
DateTime? Date;
bool? IsMine;
WorkflowTaskComment({this.WorkflowTaskID,this.UserID,this.TaskTitle,this.Connection,this.Username,this.Text,this.Date,this.IsMine});
WorkflowTaskComment.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
WorkflowTaskID = json['WorkflowTaskID'];
UserID = json['UserID'];
TaskTitle = json['TaskTitle'];
Connection = json['Connection'];
Username = json['Username'];
Text = json['Text'];
Date = JsonConverters.fromJson(json['Date'],'DateTime',context!);
IsMine = json['IsMine'];
return this;
}
Map<String, dynamic> toJson() => {
'WorkflowTaskID': WorkflowTaskID,
'UserID': UserID,
'TaskTitle': TaskTitle,
'Connection': Connection,
'Username': Username,
'Text': Text,
'Date': JsonConverters.toJson(Date,'DateTime',context!),
'IsMine': IsMine
};
getTypeName() => "WorkflowTaskComment";
TypeContext? context = _ctx;
}
class SetWorkflowTaskMessage implements IConvertible
{
int? ID;
int? UserID;
String? Message;
SetWorkflowTaskMessage({this.ID,this.UserID,this.Message});
SetWorkflowTaskMessage.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ID = json['ID'];
UserID = json['UserID'];
Message = json['Message'];
return this;
}
Map<String, dynamic> toJson() => {
'ID': ID,
'UserID': UserID,
'Message': Message
};
getTypeName() => "SetWorkflowTaskMessage";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.nl', types: <String, TypeInfo> {
'WorkflowTaskComment': TypeInfo(TypeOf.Class, create:() => WorkflowTaskComment()),
'SetWorkflowTaskMessage': TypeInfo(TypeOf.Class, create:() => SetWorkflowTaskMessage()),
});
Dart SetWorkflowTaskMessage DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /xml/reply/SetWorkflowTaskMessage HTTP/1.1
Host: digiofficeapigateway.deltares.nl
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SetWorkflowTaskMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDB.API.DTO.Workflow.Operations">
<ID>0</ID>
<Message>String</Message>
<UserID>0</UserID>
</SetWorkflowTaskMessage>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <WorkflowTaskComment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDB.API.DTO.Workflow"> <Connection>String</Connection> <Date>0001-01-01T00:00:00</Date> <IsMine>false</IsMine> <TaskTitle>String</TaskTitle> <Text>String</Text> <UserID>0</UserID> <Username>String</Username> <WorkflowTaskID>0</WorkflowTaskID> </WorkflowTaskComment>