Trendsic Platform Service

<back to all web services

CalendarResourceViewRequest

The following routes are available for this service:
POST,OPTIONS/v1/Calendar/ResourceView
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class CalendarResourceViewRequest implements IConvertible
{
    DateTime? StartDate;
    DateTime? EndDate;
    bool? Inverse;
    bool? ResourceOnly;
    bool? ShowEquipment;
    bool? ShowWorkers;
    int? ContactId;
    String? ContactName;
    String? ContactTag;
    int? EquipmentId;
    String? EquipmentName;
    String? EquipmentSN;

    CalendarResourceViewRequest({this.StartDate,this.EndDate,this.Inverse,this.ResourceOnly,this.ShowEquipment,this.ShowWorkers,this.ContactId,this.ContactName,this.ContactTag,this.EquipmentId,this.EquipmentName,this.EquipmentSN});
    CalendarResourceViewRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        StartDate = JsonConverters.fromJson(json['StartDate'],'DateTime',context!);
        EndDate = JsonConverters.fromJson(json['EndDate'],'DateTime',context!);
        Inverse = json['Inverse'];
        ResourceOnly = json['ResourceOnly'];
        ShowEquipment = json['ShowEquipment'];
        ShowWorkers = json['ShowWorkers'];
        ContactId = json['ContactId'];
        ContactName = json['ContactName'];
        ContactTag = json['ContactTag'];
        EquipmentId = json['EquipmentId'];
        EquipmentName = json['EquipmentName'];
        EquipmentSN = json['EquipmentSN'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'StartDate': JsonConverters.toJson(StartDate,'DateTime',context!),
        'EndDate': JsonConverters.toJson(EndDate,'DateTime',context!),
        'Inverse': Inverse,
        'ResourceOnly': ResourceOnly,
        'ShowEquipment': ShowEquipment,
        'ShowWorkers': ShowWorkers,
        'ContactId': ContactId,
        'ContactName': ContactName,
        'ContactTag': ContactTag,
        'EquipmentId': EquipmentId,
        'EquipmentName': EquipmentName,
        'EquipmentSN': EquipmentSN
    };

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

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

Dart CalendarResourceViewRequest DTOs

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

HTTP + OTHER

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

POST /v1/Calendar/ResourceView HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"StartDate":"0001-01-01T00:00:00.0000000","EndDate":"0001-01-01T00:00:00.0000000","Inverse":false,"ResourceOnly":false,"ShowEquipment":false,"ShowWorkers":false,"ContactId":0,"ContactName":"String","ContactTag":"String","EquipmentId":0,"EquipmentName":"String","EquipmentSN":"String"}