Trendsic Platform Service

<back to all web services

StaffMatchRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/staff/match
import 'package:servicestack/servicestack.dart';

class StaffSkillChip implements IConvertible
{
    String? Name;
    bool? Matched;

    StaffSkillChip({this.Name,this.Matched});
    StaffSkillChip.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class StaffCandidate implements IConvertible
{
    int? ContactID;
    String? Name;
    String? Kind;
    double? Rate;
    double? Rating;
    int? RatingCount;
    String? Base;
    int? DistanceMi;
    int? MatchCount;
    int? TotalRequired;
    List<StaffSkillChip>? Skills = [];
    bool? Conflict;
    String? BusyUntil;
    String? BusyJob;
    String? Phone;
    String? Email;
    bool? Sms;

    StaffCandidate({this.ContactID,this.Name,this.Kind,this.Rate,this.Rating,this.RatingCount,this.Base,this.DistanceMi,this.MatchCount,this.TotalRequired,this.Skills,this.Conflict,this.BusyUntil,this.BusyJob,this.Phone,this.Email,this.Sms});
    StaffCandidate.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ContactID = json['ContactID'];
        Name = json['Name'];
        Kind = json['Kind'];
        Rate = JsonConverters.toDouble(json['Rate']);
        Rating = JsonConverters.toDouble(json['Rating']);
        RatingCount = json['RatingCount'];
        Base = json['Base'];
        DistanceMi = json['DistanceMi'];
        MatchCount = json['MatchCount'];
        TotalRequired = json['TotalRequired'];
        Skills = JsonConverters.fromJson(json['Skills'],'List<StaffSkillChip>',context!);
        Conflict = json['Conflict'];
        BusyUntil = json['BusyUntil'];
        BusyJob = json['BusyJob'];
        Phone = json['Phone'];
        Email = json['Email'];
        Sms = json['Sms'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ContactID': ContactID,
        'Name': Name,
        'Kind': Kind,
        'Rate': Rate,
        'Rating': Rating,
        'RatingCount': RatingCount,
        'Base': Base,
        'DistanceMi': DistanceMi,
        'MatchCount': MatchCount,
        'TotalRequired': TotalRequired,
        'Skills': JsonConverters.toJson(Skills,'List<StaffSkillChip>',context!),
        'Conflict': Conflict,
        'BusyUntil': BusyUntil,
        'BusyJob': BusyJob,
        'Phone': Phone,
        'Email': Email,
        'Sms': Sms
    };

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

class StaffPosition implements IConvertible
{
    int? PlaceholderContactID;
    int? JobID;
    int? ProjectID;
    String? JobName;
    String? PositionTag;
    List<String>? Skills = [];
    double? BudgetedHours;
    double? TargetRate;
    String? StartDate;
    String? EndDate;
    String? WindowText;
    int? ResponsesActionable;
    String? PostingStatus;
    int? ApplicantTotal;
    int? ApplicantStrong;
    bool? Filled;

    StaffPosition({this.PlaceholderContactID,this.JobID,this.ProjectID,this.JobName,this.PositionTag,this.Skills,this.BudgetedHours,this.TargetRate,this.StartDate,this.EndDate,this.WindowText,this.ResponsesActionable,this.PostingStatus,this.ApplicantTotal,this.ApplicantStrong,this.Filled});
    StaffPosition.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        PlaceholderContactID = json['PlaceholderContactID'];
        JobID = json['JobID'];
        ProjectID = json['ProjectID'];
        JobName = json['JobName'];
        PositionTag = json['PositionTag'];
        Skills = JsonConverters.fromJson(json['Skills'],'List<String>',context!);
        BudgetedHours = JsonConverters.toDouble(json['BudgetedHours']);
        TargetRate = JsonConverters.toDouble(json['TargetRate']);
        StartDate = json['StartDate'];
        EndDate = json['EndDate'];
        WindowText = json['WindowText'];
        ResponsesActionable = json['ResponsesActionable'];
        PostingStatus = json['PostingStatus'];
        ApplicantTotal = json['ApplicantTotal'];
        ApplicantStrong = json['ApplicantStrong'];
        Filled = json['Filled'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'PlaceholderContactID': PlaceholderContactID,
        'JobID': JobID,
        'ProjectID': ProjectID,
        'JobName': JobName,
        'PositionTag': PositionTag,
        'Skills': JsonConverters.toJson(Skills,'List<String>',context!),
        'BudgetedHours': BudgetedHours,
        'TargetRate': TargetRate,
        'StartDate': StartDate,
        'EndDate': EndDate,
        'WindowText': WindowText,
        'ResponsesActionable': ResponsesActionable,
        'PostingStatus': PostingStatus,
        'ApplicantTotal': ApplicantTotal,
        'ApplicantStrong': ApplicantStrong,
        'Filled': Filled
    };

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

class StaffMatchResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    List<StaffCandidate>? Candidates = [];
    StaffPosition? Position;

    StaffMatchResponse({this.ResponseStatus,this.Candidates,this.Position});
    StaffMatchResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
        'Candidates': JsonConverters.toJson(Candidates,'List<StaffCandidate>',context!),
        'Position': JsonConverters.toJson(Position,'StaffPosition',context!)
    };

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

class StaffMatchRequest implements IConvertible
{
    int? PlaceholderContactID;
    int? JobID;

    StaffMatchRequest({this.PlaceholderContactID,this.JobID});
    StaffMatchRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'StaffSkillChip': TypeInfo(TypeOf.Class, create:() => StaffSkillChip()),
    'StaffCandidate': TypeInfo(TypeOf.Class, create:() => StaffCandidate()),
    'List<StaffSkillChip>': TypeInfo(TypeOf.Class, create:() => <StaffSkillChip>[]),
    'StaffPosition': TypeInfo(TypeOf.Class, create:() => StaffPosition()),
    'StaffMatchResponse': TypeInfo(TypeOf.Class, create:() => StaffMatchResponse()),
    'List<StaffCandidate>': TypeInfo(TypeOf.Class, create:() => <StaffCandidate>[]),
    'StaffMatchRequest': TypeInfo(TypeOf.Class, create:() => StaffMatchRequest()),
});

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

<StaffMatchResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Candidates>
    <StaffCandidate>
      <Base>String</Base>
      <BusyJob>String</BusyJob>
      <BusyUntil>String</BusyUntil>
      <Conflict>false</Conflict>
      <ContactID>0</ContactID>
      <DistanceMi>0</DistanceMi>
      <Email>String</Email>
      <Kind>String</Kind>
      <MatchCount>0</MatchCount>
      <Name>String</Name>
      <Phone>String</Phone>
      <Rate>0</Rate>
      <Rating>0</Rating>
      <RatingCount>0</RatingCount>
      <Skills>
        <StaffSkillChip>
          <Matched>false</Matched>
          <Name>String</Name>
        </StaffSkillChip>
      </Skills>
      <Sms>false</Sms>
      <TotalRequired>0</TotalRequired>
    </StaffCandidate>
  </Candidates>
  <Position>
    <ApplicantStrong>0</ApplicantStrong>
    <ApplicantTotal>0</ApplicantTotal>
    <BudgetedHours>0</BudgetedHours>
    <EndDate>String</EndDate>
    <Filled>false</Filled>
    <JobID>0</JobID>
    <JobName>String</JobName>
    <PlaceholderContactID>0</PlaceholderContactID>
    <PositionTag>String</PositionTag>
    <PostingStatus>String</PostingStatus>
    <ProjectID>0</ProjectID>
    <ResponsesActionable>0</ResponsesActionable>
    <Skills xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </Skills>
    <StartDate>String</StartDate>
    <TargetRate>0</TargetRate>
    <WindowText>String</WindowText>
  </Position>
  <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>
</StaffMatchResponse>