Trendsic Platform Service

<back to all web services

WebixGanttTaskRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/webix/gantt/tasks
GET,OPTIONS/v1/webix/gantt/tasks/{ProjectUID}
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class WebixGanttTask implements IConvertible
{
    String? id;
    String? type;
    String? start_date;
    String? planned_start;
    String? end_date;
    String? planned_end;
    String? text;
    int? progress;
    String? parent;
    int? position;
    int? duration;
    int? planned_duration;
    String? details;
    bool? open;
    int? opened;
    int? job_type_id;
    String? job_type_name;
    String? created_by_id;

    WebixGanttTask({this.id,this.type,this.start_date,this.planned_start,this.end_date,this.planned_end,this.text,this.progress,this.parent,this.position,this.duration,this.planned_duration,this.details,this.open,this.opened,this.job_type_id,this.job_type_name,this.created_by_id});
    WebixGanttTask.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        type = json['type'];
        start_date = json['start_date'];
        planned_start = json['planned_start'];
        end_date = json['end_date'];
        planned_end = json['planned_end'];
        text = json['text'];
        progress = json['progress'];
        parent = json['parent'];
        position = json['position'];
        duration = json['duration'];
        planned_duration = json['planned_duration'];
        details = json['details'];
        open = json['open'];
        opened = json['opened'];
        job_type_id = json['job_type_id'];
        job_type_name = json['job_type_name'];
        created_by_id = json['created_by_id'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'type': type,
        'start_date': start_date,
        'planned_start': planned_start,
        'end_date': end_date,
        'planned_end': planned_end,
        'text': text,
        'progress': progress,
        'parent': parent,
        'position': position,
        'duration': duration,
        'planned_duration': planned_duration,
        'details': details,
        'open': open,
        'opened': opened,
        'job_type_id': job_type_id,
        'job_type_name': job_type_name,
        'created_by_id': created_by_id
    };

    getTypeName() => "WebixGanttTask";
    TypeContext? context = _ctx;
}

class WebixGanttTaskResponse extends WebixGanttTask implements IConvertible
{
    WebixGanttTaskResponse();
    WebixGanttTaskResponse.fromJson(Map<String, dynamic> json) : super.fromJson(json);
    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson();
    getTypeName() => "WebixGanttTaskResponse";
    TypeContext? context = _ctx;
}

class WebixGanttTaskRequest implements IConvertible
{
    String? ProjectUID;

    WebixGanttTaskRequest({this.ProjectUID});
    WebixGanttTaskRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ProjectUID = json['ProjectUID'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ProjectUID': ProjectUID
    };

    getTypeName() => "WebixGanttTaskRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'WebixGanttTask': TypeInfo(TypeOf.Class, create:() => WebixGanttTask()),
    'WebixGanttTaskResponse': TypeInfo(TypeOf.Class, create:() => WebixGanttTaskResponse()),
    'WebixGanttTaskRequest': TypeInfo(TypeOf.Class, create:() => WebixGanttTaskRequest()),
});

Dart WebixGanttTaskRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

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

GET /v1/webix/gantt/tasks HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<WebixGanttTaskResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <created_by_id>String</created_by_id>
  <details>String</details>
  <duration>0</duration>
  <end_date>String</end_date>
  <id>String</id>
  <job_type_id>0</job_type_id>
  <job_type_name>String</job_type_name>
  <open>false</open>
  <opened>0</opened>
  <parent>String</parent>
  <planned_duration>0</planned_duration>
  <planned_end>String</planned_end>
  <planned_start>String</planned_start>
  <position>0</position>
  <progress>0</progress>
  <start_date>String</start_date>
  <text>String</text>
  <type>String</type>
</WebixGanttTaskResponse>