| GET,OPTIONS | /v1/coverage/self/card/{CoverageGapId} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CoverageSelfCardRequest
{
public Integer CoverageGapId = null;
public Integer getCoverageGapId() { return CoverageGapId; }
public CoverageSelfCardRequest setCoverageGapId(Integer value) { this.CoverageGapId = value; return this; }
}
public static class CoverageSelfCardResponse
{
public ResponseStatus ResponseStatus = null;
public CoverageSelfCard Card = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public CoverageSelfCardResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public CoverageSelfCard getCard() { return Card; }
public CoverageSelfCardResponse setCard(CoverageSelfCard value) { this.Card = value; return this; }
}
public static class CoverageSelfCard
{
public Integer CoverageGapId = null;
public String Kind = null;
public String Status = null;
public String ShiftDay = null;
public String ShiftWindow = null;
public Date ShiftStartUtc = null;
public String Site = null;
public String RoleNeeded = null;
public String ExpiryLabel = null;
public String PosterName = null;
public Integer EligibleCount = null;
public Integer IneligibleCount = null;
public CoverageSelfEligibility MyEligibility = null;
public ArrayList<CoverageSelfMatrixRow> Matrix = new ArrayList<CoverageSelfMatrixRow>();
public String SwapState = null;
public String SwapFromName = null;
public String SwapTargetName = null;
public String OfferShift = null;
public String WantShift = null;
public Boolean ConflictOk = null;
public String ConflictLabel = null;
public Boolean CanRespond = null;
public Integer getCoverageGapId() { return CoverageGapId; }
public CoverageSelfCard setCoverageGapId(Integer value) { this.CoverageGapId = value; return this; }
public String getKind() { return Kind; }
public CoverageSelfCard setKind(String value) { this.Kind = value; return this; }
public String getStatus() { return Status; }
public CoverageSelfCard setStatus(String value) { this.Status = value; return this; }
public String getShiftDay() { return ShiftDay; }
public CoverageSelfCard setShiftDay(String value) { this.ShiftDay = value; return this; }
public String getShiftWindow() { return ShiftWindow; }
public CoverageSelfCard setShiftWindow(String value) { this.ShiftWindow = value; return this; }
public Date getShiftStartUtc() { return ShiftStartUtc; }
public CoverageSelfCard setShiftStartUtc(Date value) { this.ShiftStartUtc = value; return this; }
public String getSite() { return Site; }
public CoverageSelfCard setSite(String value) { this.Site = value; return this; }
public String getRoleNeeded() { return RoleNeeded; }
public CoverageSelfCard setRoleNeeded(String value) { this.RoleNeeded = value; return this; }
public String getExpiryLabel() { return ExpiryLabel; }
public CoverageSelfCard setExpiryLabel(String value) { this.ExpiryLabel = value; return this; }
public String getPosterName() { return PosterName; }
public CoverageSelfCard setPosterName(String value) { this.PosterName = value; return this; }
public Integer getEligibleCount() { return EligibleCount; }
public CoverageSelfCard setEligibleCount(Integer value) { this.EligibleCount = value; return this; }
public Integer getIneligibleCount() { return IneligibleCount; }
public CoverageSelfCard setIneligibleCount(Integer value) { this.IneligibleCount = value; return this; }
public CoverageSelfEligibility getMyEligibility() { return MyEligibility; }
public CoverageSelfCard setMyEligibility(CoverageSelfEligibility value) { this.MyEligibility = value; return this; }
public ArrayList<CoverageSelfMatrixRow> getMatrix() { return Matrix; }
public CoverageSelfCard setMatrix(ArrayList<CoverageSelfMatrixRow> value) { this.Matrix = value; return this; }
public String getSwapState() { return SwapState; }
public CoverageSelfCard setSwapState(String value) { this.SwapState = value; return this; }
public String getSwapFromName() { return SwapFromName; }
public CoverageSelfCard setSwapFromName(String value) { this.SwapFromName = value; return this; }
public String getSwapTargetName() { return SwapTargetName; }
public CoverageSelfCard setSwapTargetName(String value) { this.SwapTargetName = value; return this; }
public String getOfferShift() { return OfferShift; }
public CoverageSelfCard setOfferShift(String value) { this.OfferShift = value; return this; }
public String getWantShift() { return WantShift; }
public CoverageSelfCard setWantShift(String value) { this.WantShift = value; return this; }
public Boolean isConflictOk() { return ConflictOk; }
public CoverageSelfCard setConflictOk(Boolean value) { this.ConflictOk = value; return this; }
public String getConflictLabel() { return ConflictLabel; }
public CoverageSelfCard setConflictLabel(String value) { this.ConflictLabel = value; return this; }
public Boolean isCanRespond() { return CanRespond; }
public CoverageSelfCard setCanRespond(Boolean value) { this.CanRespond = value; return this; }
}
public static class CoverageSelfEligibility
{
public String Tone = null;
public String Text = null;
public Boolean CanClaim = null;
public String ClaimLabel = null;
public String getTone() { return Tone; }
public CoverageSelfEligibility setTone(String value) { this.Tone = value; return this; }
public String getText() { return Text; }
public CoverageSelfEligibility setText(String value) { this.Text = value; return this; }
public Boolean isCanClaim() { return CanClaim; }
public CoverageSelfEligibility setCanClaim(Boolean value) { this.CanClaim = value; return this; }
public String getClaimLabel() { return ClaimLabel; }
public CoverageSelfEligibility setClaimLabel(String value) { this.ClaimLabel = value; return this; }
}
public static class CoverageSelfMatrixRow
{
public String Name = null;
public String Note = null;
public String Tone = null;
public String getName() { return Name; }
public CoverageSelfMatrixRow setName(String value) { this.Name = value; return this; }
public String getNote() { return Note; }
public CoverageSelfMatrixRow setNote(String value) { this.Note = value; return this; }
public String getTone() { return Tone; }
public CoverageSelfMatrixRow setTone(String value) { this.Tone = value; return this; }
}
}
Java CoverageSelfCardRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/coverage/self/card/{CoverageGapId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Card":{"CoverageGapId":0,"Kind":"String","Status":"String","ShiftDay":"String","ShiftWindow":"String","ShiftStartUtc":"0001-01-01T00:00:00.0000000","Site":"String","RoleNeeded":"String","ExpiryLabel":"String","PosterName":"String","EligibleCount":0,"IneligibleCount":0,"MyEligibility":{"Tone":"String","Text":"String","CanClaim":false,"ClaimLabel":"String"},"Matrix":[{"Name":"String","Note":"String","Tone":"String"}],"SwapState":"String","SwapFromName":"String","SwapTargetName":"String","OfferShift":"String","WantShift":"String","ConflictOk":false,"ConflictLabel":"String","CanRespond":false}}