APIScope

abstract class APIScope

Types

Link copied to clipboard
class FormResult(multipartData: MultiPartData)

Properties

Link copied to clipboard
lateinit var db: Database
Link copied to clipboard
val logger: Logger
Link copied to clipboard
lateinit var redis: Redis

Functions

Link copied to clipboard
fun Sockets.connect(factory: (Any) -> SocketsManager)
Link copied to clipboard
fun API<out APIType>.internalResponse(block: suspend (RoutingCall) -> JsonElement)
Link copied to clipboard
inline fun API<out APIType>.internalResponseForm(crossinline block: suspend (APIScope.FormResult) -> JsonElement)
Link copied to clipboard
inline fun API<out APIType>.internalResponsePost(crossinline block: suspend (JsonArray) -> JsonElement)
Link copied to clipboard
@JvmName(name = "responsePost00")
inline fun API00<APIType.Post>.response(crossinline block: suspend APIResponseScope.() -> Unit)
@JvmName(name = "responsePost01")
inline fun <O1> API01<APIType.Post, O1>.response(crossinline block: suspend APIResultScope1<O1>.() -> APIResult1<O1>)
@JvmName(name = "responsePost02")
inline fun <O1, O2> API02<APIType.Post, O1, O2>.response(crossinline block: suspend APIResultScope2<O1, O2>.() -> APIResult2<O1, O2>)
@JvmName(name = "responsePost03")
inline fun <O1, O2, O3> API03<APIType.Post, O1, O2, O3>.response(crossinline block: suspend APIResultScope3<O1, O2, O3>.() -> APIResult3<O1, O2, O3>)
@JvmName(name = "responsePost04")
inline fun <O1, O2, O3, O4> API04<APIType.Post, O1, O2, O3, O4>.response(crossinline block: suspend APIResultScope4<O1, O2, O3, O4>.() -> APIResult4<O1, O2, O3, O4>)
@JvmName(name = "responsePost05")
inline fun <O1, O2, O3, O4, O5> API05<APIType.Post, O1, O2, O3, O4, O5>.response(crossinline block: suspend APIResultScope5<O1, O2, O3, O4, O5>.() -> APIResult5<O1, O2, O3, O4, O5>)
@JvmName(name = "responseForm10")
inline fun <I1> API10<APIType.Form, I1>.response(crossinline block: suspend APIResponseScope.(I1) -> Unit)
@JvmName(name = "responsePost10")
inline fun <I1> API10<APIType.Post, I1>.response(crossinline block: suspend APIResponseScope.(I1) -> Unit)
@JvmName(name = "responseForm11")
inline fun <I1, O1> API11<APIType.Form, I1, O1>.response(crossinline block: suspend APIResultScope1<O1>.(I1) -> APIResult1<O1>)
@JvmName(name = "responsePost11")
inline fun <I1, O1> API11<APIType.Post, I1, O1>.response(crossinline block: suspend APIResultScope1<O1>.(I1) -> APIResult1<O1>)
@JvmName(name = "responseForm12")
inline fun <I1, O1, O2> API12<APIType.Form, I1, O1, O2>.response(crossinline block: suspend APIResultScope2<O1, O2>.(I1) -> APIResult2<O1, O2>)
@JvmName(name = "responsePost12")
inline fun <I1, O1, O2> API12<APIType.Post, I1, O1, O2>.response(crossinline block: suspend APIResultScope2<O1, O2>.(I1) -> APIResult2<O1, O2>)
@JvmName(name = "responseForm13")
inline fun <I1, O1, O2, O3> API13<APIType.Form, I1, O1, O2, O3>.response(crossinline block: suspend APIResultScope3<O1, O2, O3>.(I1) -> APIResult3<O1, O2, O3>)
@JvmName(name = "responsePost13")
inline fun <I1, O1, O2, O3> API13<APIType.Post, I1, O1, O2, O3>.response(crossinline block: suspend APIResultScope3<O1, O2, O3>.(I1) -> APIResult3<O1, O2, O3>)
@JvmName(name = "responseForm14")
inline fun <I1, O1, O2, O3, O4> API14<APIType.Form, I1, O1, O2, O3, O4>.response(crossinline block: suspend APIResultScope4<O1, O2, O3, O4>.(I1) -> APIResult4<O1, O2, O3, O4>)
@JvmName(name = "responsePost14")
inline fun <I1, O1, O2, O3, O4> API14<APIType.Post, I1, O1, O2, O3, O4>.response(crossinline block: suspend APIResultScope4<O1, O2, O3, O4>.(I1) -> APIResult4<O1, O2, O3, O4>)
@JvmName(name = "responseForm15")
inline fun <I1, O1, O2, O3, O4, O5> API15<APIType.Form, I1, O1, O2, O3, O4, O5>.response(crossinline block: suspend APIResultScope5<O1, O2, O3, O4, O5>.(I1) -> APIResult5<O1, O2, O3, O4, O5>)
@JvmName(name = "responsePost15")
inline fun <I1, O1, O2, O3, O4, O5> API15<APIType.Post, I1, O1, O2, O3, O4, O5>.response(crossinline block: suspend APIResultScope5<O1, O2, O3, O4, O5>.(I1) -> APIResult5<O1, O2, O3, O4, O5>)
@JvmName(name = "responseForm20")
inline fun <I1, I2> API20<APIType.Form, I1, I2>.response(crossinline block: suspend APIResponseScope.(I1, I2) -> Unit)
@JvmName(name = "responsePost20")
inline fun <I1, I2> API20<APIType.Post, I1, I2>.response(crossinline block: suspend APIResponseScope.(I1, I2) -> Unit)
@JvmName(name = "responseForm21")
inline fun <I1, I2, O1> API21<APIType.Form, I1, I2, O1>.response(crossinline block: suspend APIResultScope1<O1>.(I1, I2) -> APIResult1<O1>)
@JvmName(name = "responsePost21")
inline fun <I1, I2, O1> API21<APIType.Post, I1, I2, O1>.response(crossinline block: suspend APIResultScope1<O1>.(I1, I2) -> APIResult1<O1>)
@JvmName(name = "responseForm22")
inline fun <I1, I2, O1, O2> API22<APIType.Form, I1, I2, O1, O2>.response(crossinline block: suspend APIResultScope2<O1, O2>.(I1, I2) -> APIResult2<O1, O2>)
@JvmName(name = "responsePost22")
inline fun <I1, I2, O1, O2> API22<APIType.Post, I1, I2, O1, O2>.response(crossinline block: suspend APIResultScope2<O1, O2>.(I1, I2) -> APIResult2<O1, O2>)
@JvmName(name = "responseForm23")
inline fun <I1, I2, O1, O2, O3> API23<APIType.Form, I1, I2, O1, O2, O3>.response(crossinline block: suspend APIResultScope3<O1, O2, O3>.(I1, I2) -> APIResult3<O1, O2, O3>)
@JvmName(name = "responsePost23")
inline fun <I1, I2, O1, O2, O3> API23<APIType.Post, I1, I2, O1, O2, O3>.response(crossinline block: suspend APIResultScope3<O1, O2, O3>.(I1, I2) -> APIResult3<O1, O2, O3>)
@JvmName(name = "responseForm24")
inline fun <I1, I2, O1, O2, O3, O4> API24<APIType.Form, I1, I2, O1, O2, O3, O4>.response(crossinline block: suspend APIResultScope4<O1, O2, O3, O4>.(I1, I2) -> APIResult4<O1, O2, O3, O4>)
@JvmName(name = "responsePost24")
inline fun <I1, I2, O1, O2, O3, O4> API24<APIType.Post, I1, I2, O1, O2, O3, O4>.response(crossinline block: suspend APIResultScope4<O1, O2, O3, O4>.(I1, I2) -> APIResult4<O1, O2, O3, O4>)
@JvmName(name = "responseForm25")
inline fun <I1, I2, O1, O2, O3, O4, O5> API25<APIType.Form, I1, I2, O1, O2, O3, O4, O5>.response(crossinline block: suspend APIResultScope5<O1, O2, O3, O4, O5>.(I1, I2) -> APIResult5<O1, O2, O3, O4, O5>)
@JvmName(name = "responsePost25")
inline fun <I1, I2, O1, O2, O3, O4, O5> API25<APIType.Post, I1, I2, O1, O2, O3, O4, O5>.response(crossinline block: suspend APIResultScope5<O1, O2, O3, O4, O5>.(I1, I2) -> APIResult5<O1, O2, O3, O4, O5>)
@JvmName(name = "responseForm30")
inline fun <I1, I2, I3> API30<APIType.Form, I1, I2, I3>.response(crossinline block: suspend APIResponseScope.(I1, I2, I3) -> Unit)
@JvmName(name = "responsePost30")
inline fun <I1, I2, I3> API30<APIType.Post, I1, I2, I3>.response(crossinline block: suspend APIResponseScope.(I1, I2, I3) -> Unit)
@JvmName(name = "responseForm31")
inline fun <I1, I2, I3, O1> API31<APIType.Form, I1, I2, I3, O1>.response(crossinline block: suspend APIResultScope1<O1>.(I1, I2, I3) -> APIResult1<O1>)
@JvmName(name = "responsePost31")
inline fun <I1, I2, I3, O1> API31<APIType.Post, I1, I2, I3, O1>.response(crossinline block: suspend APIResultScope1<O1>.(I1, I2, I3) -> APIResult1<O1>)
@JvmName(name = "responseForm32")
inline fun <I1, I2, I3, O1, O2> API32<APIType.Form, I1, I2, I3, O1, O2>.response(crossinline block: suspend APIResultScope2<O1, O2>.(I1, I2, I3) -> APIResult2<O1, O2>)
@JvmName(name = "responsePost32")
inline fun <I1, I2, I3, O1, O2> API32<APIType.Post, I1, I2, I3, O1, O2>.response(crossinline block: suspend APIResultScope2<O1, O2>.(I1, I2, I3) -> APIResult2<O1, O2>)
@JvmName(name = "responseForm33")
inline fun <I1, I2, I3, O1, O2, O3> API33<APIType.Form, I1, I2, I3, O1, O2, O3>.response(crossinline block: suspend APIResultScope3<O1, O2, O3>.(I1, I2, I3) -> APIResult3<O1, O2, O3>)
@JvmName(name = "responsePost33")
inline fun <I1, I2, I3, O1, O2, O3> API33<APIType.Post, I1, I2, I3, O1, O2, O3>.response(crossinline block: suspend APIResultScope3<O1, O2, O3>.(I1, I2, I3) -> APIResult3<O1, O2, O3>)
@JvmName(name = "responseForm34")
inline fun <I1, I2, I3, O1, O2, O3, O4> API34<APIType.Form, I1, I2, I3, O1, O2, O3, O4>.response(crossinline block: suspend APIResultScope4<O1, O2, O3, O4>.(I1, I2, I3) -> APIResult4<O1, O2, O3, O4>)
@JvmName(name = "responsePost34")
inline fun <I1, I2, I3, O1, O2, O3, O4> API34<APIType.Post, I1, I2, I3, O1, O2, O3, O4>.response(crossinline block: suspend APIResultScope4<O1, O2, O3, O4>.(I1, I2, I3) -> APIResult4<O1, O2, O3, O4>)
@JvmName(name = "responseForm35")
inline fun <I1, I2, I3, O1, O2, O3, O4, O5> API35<APIType.Form, I1, I2, I3, O1, O2, O3, O4, O5>.response(crossinline block: suspend APIResultScope5<O1, O2, O3, O4, O5>.(I1, I2, I3) -> APIResult5<O1, O2, O3, O4, O5>)
@JvmName(name = "responsePost35")
inline fun <I1, I2, I3, O1, O2, O3, O4, O5> API35<APIType.Post, I1, I2, I3, O1, O2, O3, O4, O5>.response(crossinline block: suspend APIResultScope5<O1, O2, O3, O4, O5>.(I1, I2, I3) -> APIResult5<O1, O2, O3, O4, O5>)
@JvmName(name = "responseForm40")
inline fun <I1, I2, I3, I4> API40<APIType.Form, I1, I2, I3, I4>.response(crossinline block: suspend APIResponseScope.(I1, I2, I3, I4) -> Unit)
@JvmName(name = "responsePost40")
inline fun <I1, I2, I3, I4> API40<APIType.Post, I1, I2, I3, I4>.response(crossinline block: suspend APIResponseScope.(I1, I2, I3, I4) -> Unit)
@JvmName(name = "responseForm41")
inline fun <I1, I2, I3, I4, O1> API41<APIType.Form, I1, I2, I3, I4, O1>.response(crossinline block: suspend APIResultScope1<O1>.(I1, I2, I3, I4) -> APIResult1<O1>)
@JvmName(name = "responsePost41")
inline fun <I1, I2, I3, I4, O1> API41<APIType.Post, I1, I2, I3, I4, O1>.response(crossinline block: suspend APIResultScope1<O1>.(I1, I2, I3, I4) -> APIResult1<O1>)
@JvmName(name = "responseForm42")
inline fun <I1, I2, I3, I4, O1, O2> API42<APIType.Form, I1, I2, I3, I4, O1, O2>.response(crossinline block: suspend APIResultScope2<O1, O2>.(I1, I2, I3, I4) -> APIResult2<O1, O2>)
@JvmName(name = "responsePost42")
inline fun <I1, I2, I3, I4, O1, O2> API42<APIType.Post, I1, I2, I3, I4, O1, O2>.response(crossinline block: suspend APIResultScope2<O1, O2>.(I1, I2, I3, I4) -> APIResult2<O1, O2>)
@JvmName(name = "responseForm43")
inline fun <I1, I2, I3, I4, O1, O2, O3> API43<APIType.Form, I1, I2, I3, I4, O1, O2, O3>.response(crossinline block: suspend APIResultScope3<O1, O2, O3>.(I1, I2, I3, I4) -> APIResult3<O1, O2, O3>)
@JvmName(name = "responsePost43")
inline fun <I1, I2, I3, I4, O1, O2, O3> API43<APIType.Post, I1, I2, I3, I4, O1, O2, O3>.response(crossinline block: suspend APIResultScope3<O1, O2, O3>.(I1, I2, I3, I4) -> APIResult3<O1, O2, O3>)
@JvmName(name = "responseForm44")
inline fun <I1, I2, I3, I4, O1, O2, O3, O4> API44<APIType.Form, I1, I2, I3, I4, O1, O2, O3, O4>.response(crossinline block: suspend APIResultScope4<O1, O2, O3, O4>.(I1, I2, I3, I4) -> APIResult4<O1, O2, O3, O4>)
@JvmName(name = "responsePost44")
inline fun <I1, I2, I3, I4, O1, O2, O3, O4> API44<APIType.Post, I1, I2, I3, I4, O1, O2, O3, O4>.response(crossinline block: suspend APIResultScope4<O1, O2, O3, O4>.(I1, I2, I3, I4) -> APIResult4<O1, O2, O3, O4>)
@JvmName(name = "responseForm45")
inline fun <I1, I2, I3, I4, O1, O2, O3, O4, O5> API45<APIType.Form, I1, I2, I3, I4, O1, O2, O3, O4, O5>.response(crossinline block: suspend APIResultScope5<O1, O2, O3, O4, O5>.(I1, I2, I3, I4) -> APIResult5<O1, O2, O3, O4, O5>)
@JvmName(name = "responsePost45")
inline fun <I1, I2, I3, I4, O1, O2, O3, O4, O5> API45<APIType.Post, I1, I2, I3, I4, O1, O2, O3, O4, O5>.response(crossinline block: suspend APIResultScope5<O1, O2, O3, O4, O5>.(I1, I2, I3, I4) -> APIResult5<O1, O2, O3, O4, O5>)
@JvmName(name = "responseForm50")
inline fun <I1, I2, I3, I4, I5> API50<APIType.Form, I1, I2, I3, I4, I5>.response(crossinline block: suspend APIResponseScope.(I1, I2, I3, I4, I5) -> Unit)
@JvmName(name = "responsePost50")
inline fun <I1, I2, I3, I4, I5> API50<APIType.Post, I1, I2, I3, I4, I5>.response(crossinline block: suspend APIResponseScope.(I1, I2, I3, I4, I5) -> Unit)
@JvmName(name = "responseForm51")
inline fun <I1, I2, I3, I4, I5, O1> API51<APIType.Form, I1, I2, I3, I4, I5, O1>.response(crossinline block: suspend APIResultScope1<O1>.(I1, I2, I3, I4, I5) -> APIResult1<O1>)
@JvmName(name = "responsePost51")
inline fun <I1, I2, I3, I4, I5, O1> API51<APIType.Post, I1, I2, I3, I4, I5, O1>.response(crossinline block: suspend APIResultScope1<O1>.(I1, I2, I3, I4, I5) -> APIResult1<O1>)
@JvmName(name = "responseForm52")
inline fun <I1, I2, I3, I4, I5, O1, O2> API52<APIType.Form, I1, I2, I3, I4, I5, O1, O2>.response(crossinline block: suspend APIResultScope2<O1, O2>.(I1, I2, I3, I4, I5) -> APIResult2<O1, O2>)
@JvmName(name = "responsePost52")
inline fun <I1, I2, I3, I4, I5, O1, O2> API52<APIType.Post, I1, I2, I3, I4, I5, O1, O2>.response(crossinline block: suspend APIResultScope2<O1, O2>.(I1, I2, I3, I4, I5) -> APIResult2<O1, O2>)
@JvmName(name = "responseForm53")
inline fun <I1, I2, I3, I4, I5, O1, O2, O3> API53<APIType.Form, I1, I2, I3, I4, I5, O1, O2, O3>.response(crossinline block: suspend APIResultScope3<O1, O2, O3>.(I1, I2, I3, I4, I5) -> APIResult3<O1, O2, O3>)
@JvmName(name = "responsePost53")
inline fun <I1, I2, I3, I4, I5, O1, O2, O3> API53<APIType.Post, I1, I2, I3, I4, I5, O1, O2, O3>.response(crossinline block: suspend APIResultScope3<O1, O2, O3>.(I1, I2, I3, I4, I5) -> APIResult3<O1, O2, O3>)
@JvmName(name = "responseForm54")
inline fun <I1, I2, I3, I4, I5, O1, O2, O3, O4> API54<APIType.Form, I1, I2, I3, I4, I5, O1, O2, O3, O4>.response(crossinline block: suspend APIResultScope4<O1, O2, O3, O4>.(I1, I2, I3, I4, I5) -> APIResult4<O1, O2, O3, O4>)
@JvmName(name = "responsePost54")
inline fun <I1, I2, I3, I4, I5, O1, O2, O3, O4> API54<APIType.Post, I1, I2, I3, I4, I5, O1, O2, O3, O4>.response(crossinline block: suspend APIResultScope4<O1, O2, O3, O4>.(I1, I2, I3, I4, I5) -> APIResult4<O1, O2, O3, O4>)
@JvmName(name = "responseForm55")
inline fun <I1, I2, I3, I4, I5, O1, O2, O3, O4, O5> API55<APIType.Form, I1, I2, I3, I4, I5, O1, O2, O3, O4, O5>.response(crossinline block: suspend APIResultScope5<O1, O2, O3, O4, O5>.(I1, I2, I3, I4, I5) -> APIResult5<O1, O2, O3, O4, O5>)
@JvmName(name = "responsePost55")
inline fun <I1, I2, I3, I4, I5, O1, O2, O3, O4, O5> API55<APIType.Post, I1, I2, I3, I4, I5, O1, O2, O3, O4, O5>.response(crossinline block: suspend APIResultScope5<O1, O2, O3, O4, O5>.(I1, I2, I3, I4, I5) -> APIResult5<O1, O2, O3, O4, O5>)