/* Options: Date: 2024-11-24 13:44:53 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://clubready.com/api/current //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: CreateClassScheduleRequest.* //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="/scheduling/class-schedule", Verbs="POST") public static class CreateClassScheduleRequest extends CreateClassScheduleRequestDto implements IReturn, IRestrictedApiRequest { /** * Api Key - grants access to resources */ @ApiMember(DataType="string", Description="Api Key - grants access to resources", IsRequired=true, Name="ApiKey", ParameterType="query") public String ApiKey = null; /** * Store ID */ @ApiMember(DataType="integer", Description="Store ID", IsRequired=true, Name="StoreId", ParameterType="query") public Integer StoreId = null; /** * Class ID */ @ApiMember(DataType="integer", Description="Class ID", IsRequired=true, Name="ClassId", ParameterType="query") public Integer ClassId = null; /** * Date and Time for Class */ @ApiMember(DataType="date-time", Description="Date and Time for Class", IsRequired=true, Name="ClassDateTime", ParameterType="query") public Date ClassDateTime = null; /** * Trainer ID */ @ApiMember(DataType="integer", Description="Trainer ID", Name="TrainerId", ParameterType="query") public Integer TrainerId = null; /** * Alternate Class Name */ @ApiMember(DataType="string", Description="Alternate Class Name", Name="AlternateClassName", ParameterType="query") public String AlternateClassName = null; public Integer RestrictedId = null; public RestrictedResourceType RestrictedResourceType = null; public String getApiKey() { return ApiKey; } public CreateClassScheduleRequest setApiKey(String value) { this.ApiKey = value; return this; } public Integer getStoreId() { return StoreId; } public CreateClassScheduleRequest setStoreId(Integer value) { this.StoreId = value; return this; } public Integer getClassId() { return ClassId; } public CreateClassScheduleRequest setClassId(Integer value) { this.ClassId = value; return this; } public Date getClassDateTime() { return ClassDateTime; } public CreateClassScheduleRequest setClassDateTime(Date value) { this.ClassDateTime = value; return this; } public Integer getTrainerId() { return TrainerId; } public CreateClassScheduleRequest setTrainerId(Integer value) { this.TrainerId = value; return this; } public String getAlternateClassName() { return AlternateClassName; } public CreateClassScheduleRequest setAlternateClassName(String value) { this.AlternateClassName = value; return this; } public Integer getRestrictedId() { return RestrictedId; } public CreateClassScheduleRequest setRestrictedId(Integer value) { this.RestrictedId = value; return this; } public RestrictedResourceType getRestrictedResourceType() { return RestrictedResourceType; } public CreateClassScheduleRequest setRestrictedResourceType(RestrictedResourceType value) { this.RestrictedResourceType = value; return this; } private static Object responseType = CreateClassScheduleResponse.class; public Object getResponseType() { return responseType; } } public static class CreateClassScheduleResponse extends CreateClassScheduleResponseDto { public Boolean Success = null; public Integer ClassScheduleId = null; public String Message = null; public Boolean isSuccess() { return Success; } public CreateClassScheduleResponse setSuccess(Boolean value) { this.Success = value; return this; } public Integer getClassScheduleId() { return ClassScheduleId; } public CreateClassScheduleResponse setClassScheduleId(Integer value) { this.ClassScheduleId = value; return this; } public String getMessage() { return Message; } public CreateClassScheduleResponse setMessage(String value) { this.Message = value; return this; } } public static enum RestrictedResourceType { Store, Chain, User, Undefined; } public static interface IRestrictedApiRequest implements IApiKeyEndpoint { public Integer RestrictedId = null; public RestrictedResourceType RestrictedResourceType = null; } public static interface IApiKeyEndpoint { public String ApiKey = null; } public static class CreateClassScheduleRequestDto extends ApiDtoBase { public Integer ClassId = null; public Date ClassDateTime = null; public Integer TrainerId = null; public String AlternateClassName = null; public Integer getClassId() { return ClassId; } public CreateClassScheduleRequestDto setClassId(Integer value) { this.ClassId = value; return this; } public Date getClassDateTime() { return ClassDateTime; } public CreateClassScheduleRequestDto setClassDateTime(Date value) { this.ClassDateTime = value; return this; } public Integer getTrainerId() { return TrainerId; } public CreateClassScheduleRequestDto setTrainerId(Integer value) { this.TrainerId = value; return this; } public String getAlternateClassName() { return AlternateClassName; } public CreateClassScheduleRequestDto setAlternateClassName(String value) { this.AlternateClassName = value; return this; } } public static class ApiDtoBase { public String ApiKey = null; public Integer StoreId = null; public Integer ChainId = null; public String getApiKey() { return ApiKey; } public ApiDtoBase setApiKey(String value) { this.ApiKey = value; return this; } public Integer getStoreId() { return StoreId; } public ApiDtoBase setStoreId(Integer value) { this.StoreId = value; return this; } public Integer getChainId() { return ChainId; } public ApiDtoBase setChainId(Integer value) { this.ChainId = value; return this; } } public static class CreateClassScheduleResponseDto extends ApiResponseBase { public Integer ClassScheduleId = null; public Integer getClassScheduleId() { return ClassScheduleId; } public CreateClassScheduleResponseDto setClassScheduleId(Integer value) { this.ClassScheduleId = value; return this; } } public static class ApiResponseBase { public Boolean Success = null; public String Message = null; public Boolean isSuccess() { return Success; } public ApiResponseBase setSuccess(Boolean value) { this.Success = value; return this; } public String getMessage() { return Message; } public ApiResponseBase setMessage(String value) { this.Message = value; return this; } } }