DigiOffice Gateway Web Services

<back to all web services

SetWorkflowTaskMessage

Requires Authentication
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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/reply/SetWorkflowTaskMessage HTTP/1.1 
Host: digiofficeapigateway.deltares.nl 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ID":0,"UserID":0,"Message":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"WorkflowTaskID":0,"UserID":0,"TaskTitle":"String","Connection":"String","Username":"String","Text":"String","Date":"0001-01-01T00:00:00.0000000","IsMine":false}