Trendsic Platform Service

<back to all web services

AvailabilityListRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/Rfp/Availability
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class AvailabilityListRequest
    {
        
    }

    public static class AvailabilityListResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<AvailabilityRowView> Rows = new ArrayList<AvailabilityRowView>();
        public ArrayList<String> EquipmentNames = new ArrayList<String>();
        public ArrayList<String> CrewRoles = new ArrayList<String>();
        public AvailabilityRefreshSummary Summary = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public AvailabilityListResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<AvailabilityRowView> getRows() { return Rows; }
        public AvailabilityListResponse setRows(ArrayList<AvailabilityRowView> value) { this.Rows = value; return this; }
        public ArrayList<String> getEquipmentNames() { return EquipmentNames; }
        public AvailabilityListResponse setEquipmentNames(ArrayList<String> value) { this.EquipmentNames = value; return this; }
        public ArrayList<String> getCrewRoles() { return CrewRoles; }
        public AvailabilityListResponse setCrewRoles(ArrayList<String> value) { this.CrewRoles = value; return this; }
        public AvailabilityRefreshSummary getSummary() { return Summary; }
        public AvailabilityListResponse setSummary(AvailabilityRefreshSummary value) { this.Summary = value; return this; }
    }

    public static class AvailabilityRowView
    {
        public Integer ResourceAvailabilityID = null;
        public String ResourceType = null;
        public String Label = null;
        public String EquipmentName = null;
        public String RolesCsv = null;
        public BigDecimal InternalRate = null;
        public BigDecimal RentalRate = null;
        public BigDecimal PremiumPerHour = null;
        public Date AvailableFrom = null;
        public String FreedFromProjectLabel = null;
        public String Source = null;
        
        public Integer getResourceAvailabilityID() { return ResourceAvailabilityID; }
        public AvailabilityRowView setResourceAvailabilityID(Integer value) { this.ResourceAvailabilityID = value; return this; }
        public String getResourceType() { return ResourceType; }
        public AvailabilityRowView setResourceType(String value) { this.ResourceType = value; return this; }
        public String getLabel() { return Label; }
        public AvailabilityRowView setLabel(String value) { this.Label = value; return this; }
        public String getEquipmentName() { return EquipmentName; }
        public AvailabilityRowView setEquipmentName(String value) { this.EquipmentName = value; return this; }
        public String getRolesCsv() { return RolesCsv; }
        public AvailabilityRowView setRolesCsv(String value) { this.RolesCsv = value; return this; }
        public BigDecimal getInternalRate() { return InternalRate; }
        public AvailabilityRowView setInternalRate(BigDecimal value) { this.InternalRate = value; return this; }
        public BigDecimal getRentalRate() { return RentalRate; }
        public AvailabilityRowView setRentalRate(BigDecimal value) { this.RentalRate = value; return this; }
        public BigDecimal getPremiumPerHour() { return PremiumPerHour; }
        public AvailabilityRowView setPremiumPerHour(BigDecimal value) { this.PremiumPerHour = value; return this; }
        public Date getAvailableFrom() { return AvailableFrom; }
        public AvailabilityRowView setAvailableFrom(Date value) { this.AvailableFrom = value; return this; }
        public String getFreedFromProjectLabel() { return FreedFromProjectLabel; }
        public AvailabilityRowView setFreedFromProjectLabel(String value) { this.FreedFromProjectLabel = value; return this; }
        public String getSource() { return Source; }
        public AvailabilityRowView setSource(String value) { this.Source = value; return this; }
    }

    public static class AvailabilityRefreshSummary
    {
        public Integer Derived = null;
        public Integer DeactivatedStale = null;
        public Integer SkippedManualPrecedence = null;
        public Integer SkippedNoRentalSource = null;
        public Integer SkippedNoDayRate = null;
        public ArrayList<String> Notes = new ArrayList<String>();
        
        public Integer getDerived() { return Derived; }
        public AvailabilityRefreshSummary setDerived(Integer value) { this.Derived = value; return this; }
        public Integer getDeactivatedStale() { return DeactivatedStale; }
        public AvailabilityRefreshSummary setDeactivatedStale(Integer value) { this.DeactivatedStale = value; return this; }
        public Integer getSkippedManualPrecedence() { return SkippedManualPrecedence; }
        public AvailabilityRefreshSummary setSkippedManualPrecedence(Integer value) { this.SkippedManualPrecedence = value; return this; }
        public Integer getSkippedNoRentalSource() { return SkippedNoRentalSource; }
        public AvailabilityRefreshSummary setSkippedNoRentalSource(Integer value) { this.SkippedNoRentalSource = value; return this; }
        public Integer getSkippedNoDayRate() { return SkippedNoDayRate; }
        public AvailabilityRefreshSummary setSkippedNoDayRate(Integer value) { this.SkippedNoDayRate = value; return this; }
        public ArrayList<String> getNotes() { return Notes; }
        public AvailabilityRefreshSummary setNotes(ArrayList<String> value) { this.Notes = value; return this; }
    }

}

Java AvailabilityListRequest DTOs

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

HTTP + JSV

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

GET /v1/Rfp/Availability HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Rows: 
	[
		{
			ResourceAvailabilityID: 0,
			ResourceType: String,
			Label: String,
			EquipmentName: String,
			RolesCsv: String,
			InternalRate: 0,
			RentalRate: 0,
			PremiumPerHour: 0,
			AvailableFrom: 0001-01-01,
			FreedFromProjectLabel: String,
			Source: String
		}
	],
	EquipmentNames: 
	[
		String
	],
	CrewRoles: 
	[
		String
	],
	Summary: 
	{
		Derived: 0,
		DeactivatedStale: 0,
		SkippedManualPrecedence: 0,
		SkippedNoRentalSource: 0,
		SkippedNoDayRate: 0,
		Notes: 
		[
			String
		]
	}
}