/* Options: Date: 2024-11-21 11:55:35 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: TestDateSchedule.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { @Route(Path="/schedules/date/test", Verbs="POST") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") public static class TestDateSchedule implements IReturn, ICompany, IInterval { /** * The company id, if empty will use the company id for the user you are logged in with. */ @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") public UUID CompanyId = null; /** * The dates for the schedule. This is the actual timeslots. */ @ApiMember(Description="The dates for the schedule. This is the actual timeslots.", IsRequired=true) public ArrayList ScheduleDates = null; /** * From what datetime to show available times */ @ApiMember(DataType="dateTime", Description="From what datetime to show available times", IsRequired=true, ParameterType="query") public Date From = null; /** * To what datetime to show available times */ @ApiMember(DataType="dateTime", Description="To what datetime to show available times", IsRequired=true, ParameterType="query") public Date To = null; /** * The Service Duration */ @ApiMember(Description="The Service Duration") public Integer ServiceId = null; public UUID getCompanyId() { return CompanyId; } public TestDateSchedule setCompanyId(UUID value) { this.CompanyId = value; return this; } public ArrayList getScheduleDates() { return ScheduleDates; } public TestDateSchedule setScheduleDates(ArrayList value) { this.ScheduleDates = value; return this; } public Date getFrom() { return From; } public TestDateSchedule setFrom(Date value) { this.From = value; return this; } public Date getTo() { return To; } public TestDateSchedule setTo(Date value) { this.To = value; return this; } public Integer getServiceId() { return ServiceId; } public TestDateSchedule setServiceId(Integer value) { this.ServiceId = value; return this; } private static Object responseType = AvailableTimesResponse.class; public Object getResponseType() { return responseType; } } public static class AvailableTimesResponse { public UUID CompanyId = null; public Integer ServiceId = null; public String TimesFreeTextSingle = null; public String TimesFreeTextMultiple = null; public ArrayList Times = null; public UUID getCompanyId() { return CompanyId; } public AvailableTimesResponse setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getServiceId() { return ServiceId; } public AvailableTimesResponse setServiceId(Integer value) { this.ServiceId = value; return this; } public String getTimesFreeTextSingle() { return TimesFreeTextSingle; } public AvailableTimesResponse setTimesFreeTextSingle(String value) { this.TimesFreeTextSingle = value; return this; } public String getTimesFreeTextMultiple() { return TimesFreeTextMultiple; } public AvailableTimesResponse setTimesFreeTextMultiple(String value) { this.TimesFreeTextMultiple = value; return this; } public ArrayList getTimes() { return Times; } public AvailableTimesResponse setTimes(ArrayList value) { this.Times = value; return this; } } public static interface ICompany { public UUID CompanyId = null; } public static interface IInterval { public Date From = null; public Date To = null; } public static class AddDateScheduleDate { /** * The from date for the timeslot */ @ApiMember(Description="The from date for the timeslot", IsRequired=true) public Date From = null; /** * The to date for the timeslot */ @ApiMember(Description="The to date for the timeslot", IsRequired=true) public Date To = null; public Date getFrom() { return From; } public AddDateScheduleDate setFrom(Date value) { this.From = value; return this; } public Date getTo() { return To; } public AddDateScheduleDate setTo(Date value) { this.To = value; return this; } } public static class AvailableTimesSum implements IAvailableTime { public Date From = null; public Date To = null; public Integer Free = null; public Integer FreeSpots = null; public ArrayList ExceptionTexts = null; public Date getFrom() { return From; } public AvailableTimesSum setFrom(Date value) { this.From = value; return this; } public Date getTo() { return To; } public AvailableTimesSum setTo(Date value) { this.To = value; return this; } public Integer getFree() { return Free; } public AvailableTimesSum setFree(Integer value) { this.Free = value; return this; } public Integer getFreeSpots() { return FreeSpots; } public AvailableTimesSum setFreeSpots(Integer value) { this.FreeSpots = value; return this; } public ArrayList getExceptionTexts() { return ExceptionTexts; } public AvailableTimesSum setExceptionTexts(ArrayList value) { this.ExceptionTexts = value; return this; } } public static class ExceptionText { public String Reason = null; public String ReasonPublic = null; public String getReason() { return Reason; } public ExceptionText setReason(String value) { this.Reason = value; return this; } public String getReasonPublic() { return ReasonPublic; } public ExceptionText setReasonPublic(String value) { this.ReasonPublic = value; return this; } } public static interface IAvailableTime implements IInterval { public Integer Free = null; } }