Trendsic Platform Service

<back to all web services

SlotDistrictMyRequestsRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/SlotDistrictMyRequests
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class SlotDistrictApproval implements IConvertible
{
    int? SlotDistrictApprovalID;
    int? SlotDistrictID;
    int? SchoolID;
    int? AgentID;
    int? AVPID;
    String? Status;
    DateTime? DateCreated;
    DateTime? DateModified;
    String? ModifiedBy;

    SlotDistrictApproval({this.SlotDistrictApprovalID,this.SlotDistrictID,this.SchoolID,this.AgentID,this.AVPID,this.Status,this.DateCreated,this.DateModified,this.ModifiedBy});
    SlotDistrictApproval.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        SlotDistrictApprovalID = json['SlotDistrictApprovalID'];
        SlotDistrictID = json['SlotDistrictID'];
        SchoolID = json['SchoolID'];
        AgentID = json['AgentID'];
        AVPID = json['AVPID'];
        Status = json['Status'];
        DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!);
        DateModified = JsonConverters.fromJson(json['DateModified'],'DateTime',context!);
        ModifiedBy = json['ModifiedBy'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'SlotDistrictApprovalID': SlotDistrictApprovalID,
        'SlotDistrictID': SlotDistrictID,
        'SchoolID': SchoolID,
        'AgentID': AgentID,
        'AVPID': AVPID,
        'Status': Status,
        'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!),
        'DateModified': JsonConverters.toJson(DateModified,'DateTime',context!),
        'ModifiedBy': ModifiedBy
    };

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

class SlotDistrictApprovalExtended extends SlotDistrictApproval implements IConvertible
{
    String? AgentName;
    String? AVPName;
    String? DistrictName;
    String? SchoolName;
    String? County;
    String? State;

    SlotDistrictApprovalExtended({this.AgentName,this.AVPName,this.DistrictName,this.SchoolName,this.County,this.State});
    SlotDistrictApprovalExtended.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        AgentName = json['AgentName'];
        AVPName = json['AVPName'];
        DistrictName = json['DistrictName'];
        SchoolName = json['SchoolName'];
        County = json['County'];
        State = json['State'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'AgentName': AgentName,
        'AVPName': AVPName,
        'DistrictName': DistrictName,
        'SchoolName': SchoolName,
        'County': County,
        'State': State
    });

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

class SlotDistrictApprovalResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    List<SlotDistrictApprovalExtended>? SlotDistrictApproval = [];

    SlotDistrictApprovalResponse({this.ResponseStatus,this.SlotDistrictApproval});
    SlotDistrictApprovalResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        SlotDistrictApproval = JsonConverters.fromJson(json['SlotDistrictApproval'],'List<SlotDistrictApprovalExtended>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
        'SlotDistrictApproval': JsonConverters.toJson(SlotDistrictApproval,'List<SlotDistrictApprovalExtended>',context!)
    };

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

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

    Map<String, dynamic> toJson() => {};
    getTypeName() => "SlotDistrictMyRequestsRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'SlotDistrictApproval': TypeInfo(TypeOf.Class, create:() => SlotDistrictApproval()),
    'SlotDistrictApprovalExtended': TypeInfo(TypeOf.Class, create:() => SlotDistrictApprovalExtended()),
    'SlotDistrictApprovalResponse': TypeInfo(TypeOf.Class, create:() => SlotDistrictApprovalResponse()),
    'List<SlotDistrictApprovalExtended>': TypeInfo(TypeOf.Class, create:() => <SlotDistrictApprovalExtended>[]),
    'SlotDistrictMyRequestsRequest': TypeInfo(TypeOf.Class, create:() => SlotDistrictMyRequestsRequest()),
});

Dart SlotDistrictMyRequestsRequest 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/SlotDistrictMyRequests HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SlotDistrictApprovalResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <SlotDistrictApproval>
    <SlotDistrictApprovalExtended>
      <AVPID>0</AVPID>
      <AgentID>0</AgentID>
      <DateCreated>0001-01-01T00:00:00</DateCreated>
      <DateModified>0001-01-01T00:00:00</DateModified>
      <ModifiedBy>00000000-0000-0000-0000-000000000000</ModifiedBy>
      <SchoolID>0</SchoolID>
      <SlotDistrictApprovalID>0</SlotDistrictApprovalID>
      <SlotDistrictID>0</SlotDistrictID>
      <Status>String</Status>
      <AVPName>String</AVPName>
      <AgentName>String</AgentName>
      <County>String</County>
      <DistrictName>String</DistrictName>
      <SchoolName>String</SchoolName>
      <State>String</State>
    </SlotDistrictApprovalExtended>
  </SlotDistrictApproval>
</SlotDistrictApprovalResponse>