/* Options: Date: 2024-12-22 21:32:05 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateAlbums.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* @Route(Path="/albums", Verbs="POST") open class CreateAlbums : IReturn, IPost, ICreateDb { @Validate(Validator="NotEmpty") open var title:String? = null @Validate(Validator="GreaterThan(0)") open var artistId:Long? = null companion object { private val responseType = IdResponse::class.java } override fun getResponseType(): Any? = CreateAlbums.responseType } @DataContract open class IdResponse { @DataMember(Order=1) open var id:String? = null @DataMember(Order=2) open var responseStatus:ResponseStatus? = null } open class Albums { open var albumId:Long? = null @Required() open var title:String? = null open var artistId:Long? = null }