| POST,OPTIONS | /v1/coverage/self/release |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CoverageSelfReleaseRequest
{
public Integer WorkerScheduleItemID = null;
public String Note = null;
public String Audience = null;
public String Expiry = null;
public Integer TeamChannelId = null;
public Integer getWorkerScheduleItemID() { return WorkerScheduleItemID; }
public CoverageSelfReleaseRequest setWorkerScheduleItemID(Integer value) { this.WorkerScheduleItemID = value; return this; }
public String getNote() { return Note; }
public CoverageSelfReleaseRequest setNote(String value) { this.Note = value; return this; }
public String getAudience() { return Audience; }
public CoverageSelfReleaseRequest setAudience(String value) { this.Audience = value; return this; }
public String getExpiry() { return Expiry; }
public CoverageSelfReleaseRequest setExpiry(String value) { this.Expiry = value; return this; }
public Integer getTeamChannelId() { return TeamChannelId; }
public CoverageSelfReleaseRequest setTeamChannelId(Integer value) { this.TeamChannelId = 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 CoverageSelfReleaseRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/coverage/self/release HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CoverageSelfReleaseRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Audience>String</Audience>
<Expiry>String</Expiry>
<Note>String</Note>
<TeamChannelId>0</TeamChannelId>
<WorkerScheduleItemID>0</WorkerScheduleItemID>
</CoverageSelfReleaseRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<CoverageSelfCardResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Card>
<CanRespond>false</CanRespond>
<ConflictLabel>String</ConflictLabel>
<ConflictOk>false</ConflictOk>
<CoverageGapId>0</CoverageGapId>
<EligibleCount>0</EligibleCount>
<ExpiryLabel>String</ExpiryLabel>
<IneligibleCount>0</IneligibleCount>
<Kind>String</Kind>
<Matrix>
<CoverageSelfMatrixRow>
<Name>String</Name>
<Note>String</Note>
<Tone>String</Tone>
</CoverageSelfMatrixRow>
</Matrix>
<MyEligibility>
<CanClaim>false</CanClaim>
<ClaimLabel>String</ClaimLabel>
<Text>String</Text>
<Tone>String</Tone>
</MyEligibility>
<OfferShift>String</OfferShift>
<PosterName>String</PosterName>
<RoleNeeded>String</RoleNeeded>
<ShiftDay>String</ShiftDay>
<ShiftStartUtc>0001-01-01T00:00:00</ShiftStartUtc>
<ShiftWindow>String</ShiftWindow>
<Site>String</Site>
<Status>String</Status>
<SwapFromName>String</SwapFromName>
<SwapState>String</SwapState>
<SwapTargetName>String</SwapTargetName>
<WantShift>String</WantShift>
</Card>
<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>
</CoverageSelfCardResponse>