/* Options: Date: 2025-05-10 03:46:11 Version: 8.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://active-ewebservice.biz/aeservices30/api //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: C2BGetDistrictInfoRequest.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* /** * C2BGetDistrictInfoRequires active-e Contracts Service. */ @Route(Path="/C2BGetDistrictInfo", Verbs="POST, GET") @DataContract open class C2BGetDistrictInfoRequest : BaseRequest(), IReturn { /** * If sent, only districts with schools of the sent plan code will be returned. */ @DataMember @ApiMember(DataType="string", Description="If sent, only districts with schools of the sent plan code will be returned.", Format="date", Name="PlanCode", ParameterType="query") var PlanCode:String? = null /** * ID of the Instrument record. Optional. */ @DataMember @ApiMember(DataType="integer", Description="ID of the Instrument record. Optional.", Format="int64", Name="RinPk", ParameterType="query") var RinPk:Long? = null /** * Optional Request Type. Valid values are Contract and Shipping. */ @DataMember @ApiMember(DataType="string", Description="Optional Request Type. Valid values are Contract and Shipping.", Name="RequestType", ParameterType="query") var RequestType:String? = null companion object { private val responseType = C2BGetDistrictInfoResponse::class.java } override fun getResponseType(): Any? = C2BGetDistrictInfoRequest.responseType } @DataContract open class C2BGetDistrictInfoResponse : BaseResponse() { @DataMember var Districts:ArrayList = ArrayList() @DataMember var TeacherTableExists:Boolean? = null } @DataContract open class BaseRequest { /** * This is your AIM API Key provided by Tri-Tech */ @DataMember @ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="header") var ApiKey:String? = null @DataMember @ApiMember(DataType="string", Name="OAuthToken", ParameterType="header") var OAuthToken:String? = null } @DataContract open class C2BDistrictGeneric { @DataMember var DistrictName:String? = null @DataMember var SchoolCount:Int? = null @DataMember var TeacherCount:Int? = null @DataMember var Topic:String? = null @DataMember var Id:Long? = null } @DataContract open class BaseResponse { /** * */ @DataMember @ApiMember(DataType="BaseResponseResult", Description="", Name="Status", ParameterType="body") var Status:BaseResponseResult? = null }