/* Options: Date: 2024-12-22 12:54:03 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://techstacks.io //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetPost.* //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="/posts/{Id}", Verbs="GET") open class GetPost : IReturn, IGet { open var id:Long? = null open var include:String? = null companion object { private val responseType = GetPostResponse::class.java } override fun getResponseType(): Any? = GetPost.responseType } open class GetPostResponse { open var cache:Long? = null open var post:Post? = null open var comments:ArrayList? = null open var responseStatus:ResponseStatus? = null } open class Post { open var id:Long? = null open var organizationId:Int? = null open var userId:Int? = null @SerializedName("type") open var Type:PostType? = null open var categoryId:Int? = null open var title:String? = null open var slug:String? = null open var url:String? = null open var imageUrl:String? = null @StringLength(MaximumLength=2147483647) open var content:String? = null @StringLength(MaximumLength=2147483647) open var contentHtml:String? = null open var pinCommentId:Long? = null open var technologyIds:ArrayList? = null open var fromDate:Date? = null open var toDate:Date? = null open var location:String? = null open var metaType:String? = null open var meta:String? = null open var approved:Boolean? = null open var upVotes:Long? = null open var downVotes:Long? = null open var points:Long? = null open var views:Long? = null open var favorites:Long? = null open var subscribers:Int? = null open var replyCount:Int? = null open var commentsCount:Int? = null open var wordCount:Int? = null open var reportCount:Int? = null open var linksCount:Int? = null open var linkedToCount:Int? = null open var score:Int? = null open var rank:Int? = null open var labels:ArrayList? = null open var refUserIds:ArrayList? = null open var refLinks:ArrayList? = null open var muteUserIds:ArrayList? = null open var lastCommentDate:Date? = null open var lastCommentId:Long? = null open var lastCommentUserId:Int? = null open var deleted:Date? = null open var deletedBy:String? = null open var locked:Date? = null open var lockedBy:String? = null open var hidden:Date? = null open var hiddenBy:String? = null open var status:String? = null open var statusDate:Date? = null open var statusBy:String? = null open var archived:Boolean? = null open var bumped:Date? = null open var created:Date? = null open var createdBy:String? = null open var modified:Date? = null open var modifiedBy:String? = null open var refId:Long? = null open var refSource:String? = null open var refUrn:String? = null } enum class PostType { Announcement, Post, Showcase, Question, Request, } open class PostComment { open var id:Long? = null open var postId:Long? = null open var userId:Int? = null open var replyId:Long? = null @StringLength(MaximumLength=2147483647) open var content:String? = null @StringLength(MaximumLength=2147483647) open var contentHtml:String? = null open var score:Int? = null open var rank:Int? = null open var upVotes:Long? = null open var downVotes:Long? = null open var favorites:Long? = null open var wordCount:Int? = null open var reportCount:Int? = null open var deleted:Date? = null open var hidden:Date? = null open var modified:Date? = null open var created:Date? = null open var createdBy:String? = null open var refId:Long? = null open var refSource:String? = null open var refUrn:String? = null }