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 .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.

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

<CalendarResourceViewRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <ContactId>0</ContactId>
  <ContactName>String</ContactName>
  <ContactTag>String</ContactTag>
  <EndDate>0001-01-01T00:00:00</EndDate>
  <EquipmentId>0</EquipmentId>
  <EquipmentName>String</EquipmentName>
  <EquipmentSN>String</EquipmentSN>
  <Inverse>false</Inverse>
  <ResourceOnly>false</ResourceOnly>
  <ShowEquipment>false</ShowEquipment>
  <ShowWorkers>false</ShowWorkers>
  <StartDate>0001-01-01T00:00:00</StartDate>
</CalendarResourceViewRequest>