PostQuestionDto

data class PostQuestionDto(question: String, answer: String, categoryId: Int, order: Int?)

Functions

component1
Link copied to clipboard
operator fun component1(): String
component2
Link copied to clipboard
operator fun component2(): String
component3
Link copied to clipboard
operator fun component3(): Int
component4
Link copied to clipboard
operator fun component4(): Int?
copy
Link copied to clipboard
fun copy(question: String, answer: String, categoryId: Int, order: Int? = null): PostQuestionDto
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String
validate
Link copied to clipboard
fun validate(categoryQuestionsCount: Int)

Properties

answer
Link copied to clipboard
val answer: String
categoryId
Link copied to clipboard
val categoryId: Int
order
Link copied to clipboard
var order: Int? = null
question
Link copied to clipboard
val question: String