import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetFacilityStatus extends ApiServiceRequest
{
public String facilityGuid = null;
public String getFacilityGuid() { return facilityGuid; }
public GetFacilityStatus setFacilityGuid(String value) { this.facilityGuid = value; return this; }
}
public static class ApiServiceRequest implements IServiceRequest, IHasApiKey, IHasDeviceInfo
{
/**
* The API Key required for authentication
*/
@ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true)
public String apiKey = null;
/**
* Latitude of the user making this request
*/
@ApiMember(DataType="double", Description="Latitude of the user making this request")
public Double latitude = null;
/**
* Longitude of the user making this request
*/
@ApiMember(DataType="double", Description="Longitude of the user making this request")
public Double longitude = null;
public String getApiKey() { return apiKey; }
public ApiServiceRequest setApiKey(String value) { this.apiKey = value; return this; }
public Double getLatitude() { return latitude; }
public ApiServiceRequest setLatitude(Double value) { this.latitude = value; return this; }
public Double getLongitude() { return longitude; }
public ApiServiceRequest setLongitude(Double value) { this.longitude = value; return this; }
}
public static class GetFacilityStatusResponse extends ApiServiceResponse
{
public FacilityStatusData facilityStatus = null;
public FacilityData facilityData = null;
public FacilityStatusData getFacilityStatus() { return facilityStatus; }
public GetFacilityStatusResponse setFacilityStatus(FacilityStatusData value) { this.facilityStatus = value; return this; }
public FacilityData getFacilityData() { return facilityData; }
public GetFacilityStatusResponse setFacilityData(FacilityData value) { this.facilityData = value; return this; }
}
public static class ApiServiceResponse implements IServiceResponse
{
public String description = null;
public String heading = null;
public Boolean wasSuccessful = null;
public Object modelState = null;
public String getDescription() { return description; }
public ApiServiceResponse setDescription(String value) { this.description = value; return this; }
public String getHeading() { return heading; }
public ApiServiceResponse setHeading(String value) { this.heading = value; return this; }
public Boolean isWasSuccessful() { return wasSuccessful; }
public ApiServiceResponse setWasSuccessful(Boolean value) { this.wasSuccessful = value; return this; }
public Object getModelState() { return modelState; }
public ApiServiceResponse setModelState(Object value) { this.modelState = value; return this; }
}
public static class FacilityStatusData
{
public String facilityName = null;
public String themeColor = null;
public String venueLogoUrl = null;
public Boolean inProgress = null;
public String currentReservationName = null;
public String currentReservationStart = null;
public String currentReservationEnd = null;
public Integer currentReservationId = null;
public Boolean hasNextReservation = null;
public String nextReservationName = null;
public String nextReservationStart = null;
public String nextReservationEnd = null;
public Integer nextReservationId = null;
public Boolean freeUntilNextBooking = null;
public String getFacilityName() { return facilityName; }
public FacilityStatusData setFacilityName(String value) { this.facilityName = value; return this; }
public String getThemeColor() { return themeColor; }
public FacilityStatusData setThemeColor(String value) { this.themeColor = value; return this; }
public String getVenueLogoUrl() { return venueLogoUrl; }
public FacilityStatusData setVenueLogoUrl(String value) { this.venueLogoUrl = value; return this; }
public Boolean isInProgress() { return inProgress; }
public FacilityStatusData setInProgress(Boolean value) { this.inProgress = value; return this; }
public String getCurrentReservationName() { return currentReservationName; }
public FacilityStatusData setCurrentReservationName(String value) { this.currentReservationName = value; return this; }
public String getCurrentReservationStart() { return currentReservationStart; }
public FacilityStatusData setCurrentReservationStart(String value) { this.currentReservationStart = value; return this; }
public String getCurrentReservationEnd() { return currentReservationEnd; }
public FacilityStatusData setCurrentReservationEnd(String value) { this.currentReservationEnd = value; return this; }
public Integer getCurrentReservationId() { return currentReservationId; }
public FacilityStatusData setCurrentReservationId(Integer value) { this.currentReservationId = value; return this; }
public Boolean isHasNextReservation() { return hasNextReservation; }
public FacilityStatusData setHasNextReservation(Boolean value) { this.hasNextReservation = value; return this; }
public String getNextReservationName() { return nextReservationName; }
public FacilityStatusData setNextReservationName(String value) { this.nextReservationName = value; return this; }
public String getNextReservationStart() { return nextReservationStart; }
public FacilityStatusData setNextReservationStart(String value) { this.nextReservationStart = value; return this; }
public String getNextReservationEnd() { return nextReservationEnd; }
public FacilityStatusData setNextReservationEnd(String value) { this.nextReservationEnd = value; return this; }
public Integer getNextReservationId() { return nextReservationId; }
public FacilityStatusData setNextReservationId(Integer value) { this.nextReservationId = value; return this; }
public Boolean isFreeUntilNextBooking() { return freeUntilNextBooking; }
public FacilityStatusData setFreeUntilNextBooking(Boolean value) { this.freeUntilNextBooking = value; return this; }
}
public static class FacilityData
{
public Integer facilityId = null;
public String facilityGuid = null;
public String name = null;
public String description = null;
public String nextAvailable = null;
public Boolean hasNextAvailable = null;
public ArrayList<RatesItem> rates = null;
public String themeColor = null;
public String bookingNotes = null;
public Integer leadTime = null;
public Integer venueId = null;
public Boolean allowExtraRequirements = null;
public Integer getFacilityId() { return facilityId; }
public FacilityData setFacilityId(Integer value) { this.facilityId = value; return this; }
public String getFacilityGuid() { return facilityGuid; }
public FacilityData setFacilityGuid(String value) { this.facilityGuid = value; return this; }
public String getName() { return name; }
public FacilityData setName(String value) { this.name = value; return this; }
public String getDescription() { return description; }
public FacilityData setDescription(String value) { this.description = value; return this; }
public String getNextAvailable() { return nextAvailable; }
public FacilityData setNextAvailable(String value) { this.nextAvailable = value; return this; }
public Boolean isHasNextAvailable() { return hasNextAvailable; }
public FacilityData setHasNextAvailable(Boolean value) { this.hasNextAvailable = value; return this; }
public ArrayList<RatesItem> getRates() { return rates; }
public FacilityData setRates(ArrayList<RatesItem> value) { this.rates = value; return this; }
public String getThemeColor() { return themeColor; }
public FacilityData setThemeColor(String value) { this.themeColor = value; return this; }
public String getBookingNotes() { return bookingNotes; }
public FacilityData setBookingNotes(String value) { this.bookingNotes = value; return this; }
public Integer getLeadTime() { return leadTime; }
public FacilityData setLeadTime(Integer value) { this.leadTime = value; return this; }
public Integer getVenueId() { return venueId; }
public FacilityData setVenueId(Integer value) { this.venueId = value; return this; }
public Boolean isAllowExtraRequirements() { return allowExtraRequirements; }
public FacilityData setAllowExtraRequirements(Boolean value) { this.allowExtraRequirements = value; return this; }
}
public static class RatesItem
{
public BigDecimal rate = null;
public Integer minutes = null;
public BigDecimal getRate() { return rate; }
public RatesItem setRate(BigDecimal value) { this.rate = value; return this; }
public Integer getMinutes() { return minutes; }
public RatesItem setMinutes(Integer value) { this.minutes = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/reply/GetFacilityStatus HTTP/1.1
Host: reservation.api.dev.86degrees.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
facilityGuid: String,
apiKey: String,
latitude: 0,
longitude: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
description: String,
heading: String,
wasSuccessful: False,
modelState: {}
}