Trendsic Platform Service

<back to all web services

ResourceConflictsRequest

Requires Authentication
The following routes are available for this service:
GET/v1/resource-conflicts
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class ResourceConflictsRequest
    {
        public Integer Window = null;
        
        public Integer getWindow() { return Window; }
        public ResourceConflictsRequest setWindow(Integer value) { this.Window = value; return this; }
    }

    public static class ResourceConflictsResponse
    {
        public ArrayList<ResourceConflictDto> Conflicts = new ArrayList<ResourceConflictDto>();
        public Integer EquipmentWatched = null;
        public Integer WorkersWatched = null;
        public Integer CrewsWatched = null;
        public Integer ResolvedInWindow = null;
        public Boolean CanResolve = null;
        public ResponseStatus ResponseStatus = null;
        
        public ArrayList<ResourceConflictDto> getConflicts() { return Conflicts; }
        public ResourceConflictsResponse setConflicts(ArrayList<ResourceConflictDto> value) { this.Conflicts = value; return this; }
        public Integer getEquipmentWatched() { return EquipmentWatched; }
        public ResourceConflictsResponse setEquipmentWatched(Integer value) { this.EquipmentWatched = value; return this; }
        public Integer getWorkersWatched() { return WorkersWatched; }
        public ResourceConflictsResponse setWorkersWatched(Integer value) { this.WorkersWatched = value; return this; }
        public Integer getCrewsWatched() { return CrewsWatched; }
        public ResourceConflictsResponse setCrewsWatched(Integer value) { this.CrewsWatched = value; return this; }
        public Integer getResolvedInWindow() { return ResolvedInWindow; }
        public ResourceConflictsResponse setResolvedInWindow(Integer value) { this.ResolvedInWindow = value; return this; }
        public Boolean isCanResolve() { return CanResolve; }
        public ResourceConflictsResponse setCanResolve(Boolean value) { this.CanResolve = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public ResourceConflictsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class ResourceConflictDto
    {
        public String Id = null;
        public String Kind = null;
        public String Name = null;
        public String Severity = null;
        public String Summary = null;
        public ArrayList<ResourceConflictBookingDto> Bookings = new ArrayList<ResourceConflictBookingDto>();
        public ArrayList<ResourceConflictOptionDto> Options = new ArrayList<ResourceConflictOptionDto>();
        
        public String getId() { return Id; }
        public ResourceConflictDto setId(String value) { this.Id = value; return this; }
        public String getKind() { return Kind; }
        public ResourceConflictDto setKind(String value) { this.Kind = value; return this; }
        public String getName() { return Name; }
        public ResourceConflictDto setName(String value) { this.Name = value; return this; }
        public String getSeverity() { return Severity; }
        public ResourceConflictDto setSeverity(String value) { this.Severity = value; return this; }
        public String getSummary() { return Summary; }
        public ResourceConflictDto setSummary(String value) { this.Summary = value; return this; }
        public ArrayList<ResourceConflictBookingDto> getBookings() { return Bookings; }
        public ResourceConflictDto setBookings(ArrayList<ResourceConflictBookingDto> value) { this.Bookings = value; return this; }
        public ArrayList<ResourceConflictOptionDto> getOptions() { return Options; }
        public ResourceConflictDto setOptions(ArrayList<ResourceConflictOptionDto> value) { this.Options = value; return this; }
    }

    public static class ResourceConflictBookingDto
    {
        public String Project = null;
        public String Job = null;
        public String Window = null;
        public String Tag = null;
        public Boolean Hot = null;
        
        public String getProject() { return Project; }
        public ResourceConflictBookingDto setProject(String value) { this.Project = value; return this; }
        public String getJob() { return Job; }
        public ResourceConflictBookingDto setJob(String value) { this.Job = value; return this; }
        public String getWindow() { return Window; }
        public ResourceConflictBookingDto setWindow(String value) { this.Window = value; return this; }
        public String getTag() { return Tag; }
        public ResourceConflictBookingDto setTag(String value) { this.Tag = value; return this; }
        public Boolean isHot() { return Hot; }
        public ResourceConflictBookingDto setHot(Boolean value) { this.Hot = value; return this; }
    }

    public static class ResourceConflictOptionDto
    {
        public String Id = null;
        public String Label = null;
        public String Note = null;
        public Boolean Clears = null;
        public Boolean Recommended = null;
        public String Why = null;
        public String ActionJson = null;
        
        public String getId() { return Id; }
        public ResourceConflictOptionDto setId(String value) { this.Id = value; return this; }
        public String getLabel() { return Label; }
        public ResourceConflictOptionDto setLabel(String value) { this.Label = value; return this; }
        public String getNote() { return Note; }
        public ResourceConflictOptionDto setNote(String value) { this.Note = value; return this; }
        public Boolean isClears() { return Clears; }
        public ResourceConflictOptionDto setClears(Boolean value) { this.Clears = value; return this; }
        public Boolean isRecommended() { return Recommended; }
        public ResourceConflictOptionDto setRecommended(Boolean value) { this.Recommended = value; return this; }
        public String getWhy() { return Why; }
        public ResourceConflictOptionDto setWhy(String value) { this.Why = value; return this; }
        public String getActionJson() { return ActionJson; }
        public ResourceConflictOptionDto setActionJson(String value) { this.ActionJson = value; return this; }
    }

}

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

<ResourceConflictsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <CanResolve>false</CanResolve>
  <Conflicts>
    <ResourceConflictDto>
      <Bookings>
        <ResourceConflictBookingDto>
          <Hot>false</Hot>
          <Job>String</Job>
          <Project>String</Project>
          <Tag>String</Tag>
          <Window>String</Window>
        </ResourceConflictBookingDto>
      </Bookings>
      <Id>String</Id>
      <Kind>String</Kind>
      <Name>String</Name>
      <Options>
        <ResourceConflictOptionDto>
          <ActionJson>String</ActionJson>
          <Clears>false</Clears>
          <Id>String</Id>
          <Label>String</Label>
          <Note>String</Note>
          <Recommended>false</Recommended>
          <Why>String</Why>
        </ResourceConflictOptionDto>
      </Options>
      <Severity>String</Severity>
      <Summary>String</Summary>
    </ResourceConflictDto>
  </Conflicts>
  <CrewsWatched>0</CrewsWatched>
  <EquipmentWatched>0</EquipmentWatched>
  <ResolvedInWindow>0</ResolvedInWindow>
  <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>
  <WorkersWatched>0</WorkersWatched>
</ResourceConflictsResponse>