You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
37 lines
1.1 KiB
package com.example.action
|
|
|
|
sealed interface BaseAction {
|
|
val disconnectWs: Boolean
|
|
data class HttpAction(
|
|
var request: HttpActionRequest? = null,
|
|
var response: HttpActionResponse? = null,
|
|
var next: List<Next> = emptyList(),
|
|
var delay: Int,
|
|
var skipError: Boolean,
|
|
var async: Boolean,
|
|
override val disconnectWs: Boolean = false,
|
|
) : BaseAction
|
|
|
|
data class PinAction(
|
|
var params:List<VarExtractRule> = mutableListOf(),
|
|
var filter: Boolean = true,
|
|
var delay: Int,
|
|
var next: List<Next> = mutableListOf(),
|
|
var skipError: Boolean,
|
|
var async: Boolean,
|
|
override val disconnectWs: Boolean = false,
|
|
) : BaseAction
|
|
|
|
|
|
data class WebSocketAction(
|
|
var request: WebSocketActionRequest? = null,
|
|
var response: WebSocketActionResponse? = null,
|
|
var delay: Int = 0,
|
|
var next: List<Next> = emptyList(),
|
|
var skipError: Boolean = true,
|
|
var async: Boolean = true,
|
|
override var disconnectWs: Boolean = true
|
|
): BaseAction
|
|
}
|
|
|