Trendsic Platform Service

<back to all web services

ShiftPatternsRequest

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

public class dtos
{

    public static class ShiftPatternsRequest
    {
        
    }

    public static class ShiftPatternsResponse
    {
        public ArrayList<ShiftPattern> Patterns = new ArrayList<ShiftPattern>();
        public ResponseStatus ResponseStatus = null;
        
        public ArrayList<ShiftPattern> getPatterns() { return Patterns; }
        public ShiftPatternsResponse setPatterns(ArrayList<ShiftPattern> value) { this.Patterns = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public ShiftPatternsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class ShiftPattern
    {
        public Integer ShiftPatternID = null;
        public UUID BranchId = null;
        public String Code = null;
        public String Name = null;
        public String Struct = null;
        public BigDecimal HoursPerDay = null;
        public Integer OnDays = null;
        public Integer OffDays = null;
        public String PatternType = null;
        public Boolean IsNight = null;
        public Boolean HasBoundary = null;
        public Boolean IsHitch = null;
        public Boolean HasTravel = null;
        public Boolean IsSeasonal = null;
        public String SeasonalWindow = null;
        public Boolean IsDayRate = null;
        public String OtRuleId = null;
        public String PerDiemRuleId = null;
        public String Packs = null;
        public String Status = null;
        public Boolean IsSeed = null;
        public Integer AssignedCount = null;
        
        public Integer getShiftPatternID() { return ShiftPatternID; }
        public ShiftPattern setShiftPatternID(Integer value) { this.ShiftPatternID = value; return this; }
        public UUID getBranchId() { return BranchId; }
        public ShiftPattern setBranchId(UUID value) { this.BranchId = value; return this; }
        public String getCode() { return Code; }
        public ShiftPattern setCode(String value) { this.Code = value; return this; }
        public String getName() { return Name; }
        public ShiftPattern setName(String value) { this.Name = value; return this; }
        public String getStruct() { return Struct; }
        public ShiftPattern setStruct(String value) { this.Struct = value; return this; }
        public BigDecimal getHoursPerDay() { return HoursPerDay; }
        public ShiftPattern setHoursPerDay(BigDecimal value) { this.HoursPerDay = value; return this; }
        public Integer getOnDays() { return OnDays; }
        public ShiftPattern setOnDays(Integer value) { this.OnDays = value; return this; }
        public Integer getOffDays() { return OffDays; }
        public ShiftPattern setOffDays(Integer value) { this.OffDays = value; return this; }
        public String getPatternType() { return PatternType; }
        public ShiftPattern setPatternType(String value) { this.PatternType = value; return this; }
        public Boolean getIsNight() { return IsNight; }
        public ShiftPattern setIsNight(Boolean value) { this.IsNight = value; return this; }
        public Boolean isHasBoundary() { return HasBoundary; }
        public ShiftPattern setHasBoundary(Boolean value) { this.HasBoundary = value; return this; }
        public Boolean getIsHitch() { return IsHitch; }
        public ShiftPattern setIsHitch(Boolean value) { this.IsHitch = value; return this; }
        public Boolean isHasTravel() { return HasTravel; }
        public ShiftPattern setHasTravel(Boolean value) { this.HasTravel = value; return this; }
        public Boolean getIsSeasonal() { return IsSeasonal; }
        public ShiftPattern setIsSeasonal(Boolean value) { this.IsSeasonal = value; return this; }
        public String getSeasonalWindow() { return SeasonalWindow; }
        public ShiftPattern setSeasonalWindow(String value) { this.SeasonalWindow = value; return this; }
        public Boolean getIsDayRate() { return IsDayRate; }
        public ShiftPattern setIsDayRate(Boolean value) { this.IsDayRate = value; return this; }
        public String getOtRuleId() { return OtRuleId; }
        public ShiftPattern setOtRuleId(String value) { this.OtRuleId = value; return this; }
        public String getPerDiemRuleId() { return PerDiemRuleId; }
        public ShiftPattern setPerDiemRuleId(String value) { this.PerDiemRuleId = value; return this; }
        public String getPacks() { return Packs; }
        public ShiftPattern setPacks(String value) { this.Packs = value; return this; }
        public String getStatus() { return Status; }
        public ShiftPattern setStatus(String value) { this.Status = value; return this; }
        public Boolean getIsSeed() { return IsSeed; }
        public ShiftPattern setIsSeed(Boolean value) { this.IsSeed = value; return this; }
        public Integer getAssignedCount() { return AssignedCount; }
        public ShiftPattern setAssignedCount(Integer value) { this.AssignedCount = value; return this; }
    }

}

Java ShiftPatternsRequest 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/workforce/patterns HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Patterns: 
	[
		{
			ShiftPatternID: 0,
			BranchId: 00000000000000000000000000000000,
			Code: String,
			Name: String,
			Struct: String,
			HoursPerDay: 0,
			OnDays: 0,
			OffDays: 0,
			PatternType: String,
			IsNight: False,
			HasBoundary: False,
			IsHitch: False,
			HasTravel: False,
			IsSeasonal: False,
			SeasonalWindow: String,
			IsDayRate: False,
			OtRuleId: String,
			PerDiemRuleId: String,
			Packs: String,
			Status: String,
			IsSeed: False,
			AssignedCount: 0
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}