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.
34 lines
953 B
34 lines
953 B
|
1 month ago
|
package com.example.action
|
||
|
|
|
||
|
|
sealed interface BaseAction {
|
||
|
|
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,
|
||
|
|
) : 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,
|
||
|
|
) : 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,
|
||
|
|
var disconnectWs: Boolean = true
|
||
|
|
): BaseAction
|
||
|
|
}
|
||
|
|
|