object Scenario
- Alphabetic
- By Inheritance
- Scenario
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final class PurePartiallyApplied[F[_]] extends AnyVal
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def done[F[_]]: Scenario[F, Unit]
Unit value lifted to Scenario context with effect
F. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def eval[F[_], A](fa: F[A]): Scenario[F, A]
Suspends an effectful value of type
Ainto Scenario context.Suspends an effectful value of type
Ainto Scenario context.Generally used for describing action that should be executed by the bot (e.g. sending messages, making calls to external APIs, etc.)
- def expect[F[_], A](pf: PartialFunction[TelegramMessage, A]): Scenario[F, A]
Describes the next expected received message.
Describes the next expected received message.
Any input message from
pfdomain will be matched and transformed into a value of typeA. - def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- implicit def functionKInstance[F[_]]: ~>[F, [β$3$]Scenario[F, β$3$]]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit def monadErrorInstance[F[_]]: MonadError[[β$0$]Scenario[F, β$0$], Throwable]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def pure[F[_]]: PurePartiallyApplied[F]
Lifts pure value to Scenario context.
Lifts pure value to Scenario context.
Uses partially applied type parameter technique.
- def raiseError[F[_]](e: Throwable): Scenario[F, Nothing]
Lifts error value to the Scenario context.
Lifts error value to the Scenario context.
Error can be safely brought back to the return value domain using
attemptmethod. It also can be handled using various methods fromMonadErrorsuch ashandleErrorWith,recoveretc.- returns
Scenario which fails with
e
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()