/* Options: Date: 2025-12-17 01:02:04 Version: 8.60 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://shortlinks-api.qa.platform.georiot.com //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetUserLinkRequest.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* import com.google.gson.annotations.* import com.google.gson.reflect.* @Route(Path="/v4/links", Verbs="GET") // @Route(Path="/v4/links/{Id}", Verbs="GET") @DataContract open class GetUserLinkRequest : V4BaseRequest(), IReturn { @DataMember(Name="id") @SerializedName("id") open var id:String? = null @DataMember(Name="username") @SerializedName("username") open var username:String? = null @DataMember(Name="groupId") @SerializedName("groupId") open var groupId:Long? = null companion object { private val responseType = GetUserLinkResponse::class.java } override fun getResponseType(): Any? = GetUserLinkRequest.responseType } @DataContract open class GetUserLinkResponse : V4BaseResponse(), IGetUserLinkResponse { @DataMember(Name="data") @SerializedName("data") override var Data:IUserLink? = null } @DataContract open class V4BaseRequest { } enum class LinkType { None, Simple, Split, Interstitial, Advanced, Collection, } interface IUserLink { var url:String? var baseCode:String? var linkType:LinkType? var typeDefinitionPublicId:String? var metadata:VersionedRefreshableMetadata? } @DataContract open class V4BaseResponse { @DataMember(Name="status") @SerializedName("status") open var responseStatus:ResponseStatus? = null } interface IGetUserLinkResponse { @SerializedName("data") var Data:IUserLink? } open class RefreshableMetadata : IRefreshableMetadata { override var createdDate:Date? = null override var updatedDate:Date? = null } open class VersionedRefreshableMetadata : RefreshableMetadata() { open var versionCreatedDate:Date? = null } interface IRefreshableMetadata { var createdDate:Date? var updatedDate:Date? }