case class DualMiniBotTask[P, Q, W, V, ID](responses: (V) => (P) => Vector[Task[Q]], predicate: (V) => Boolean = (_: V) => true, name: Option[String] = None)(implicit pw: Postable[P, W, ID], qw: Postable[Q, W, ID], lv: LocalQueryable[V, W, ID], dg: DataGetter[Q, W, ID]) extends TypedPostResponse[P, W, ID] with Product with Serializable
Bot responding to a post returning a vector of posts for each value of the auxiliary queryable - so even if the auxiliary has a single response, many posts are made but posts are in the future : this works if branches are known in advance but each branch calculation is expensive.
- responses
the responses of the bot
- predicate
the condition the post must satisfy to trigger the bot
- pw
postability of the post type
- qw
postability of the response post type
- lv
queryability of the other arguments
- Alphabetic
- By Inheritance
- DualMiniBotTask
- Serializable
- Product
- Equals
- TypedPostResponse
- PostResponse
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DualMiniBotTask(responses: (V) => (P) => Vector[Task[Q]], predicate: (V) => Boolean = (_: V) => true, name: Option[String] = None)(implicit pw: Postable[P, W, ID], qw: Postable[Q, W, ID], lv: LocalQueryable[V, W, ID], dg: DataGetter[Q, W, ID])
- responses
the responses of the bot
- predicate
the condition the post must satisfy to trigger the bot
- pw
postability of the post type
- qw
postability of the response post type
- lv
queryability of the other arguments
Type Members
- type PostType = P
- Definition Classes
- TypedPostResponse → PostResponse
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def &&(that: TypedPostResponse[P, W, ID]): ConcurrentResponse[P, W, ID]
- Definition Classes
- TypedPostResponse
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from DualMiniBotTask[P, Q, W, V, ID] toany2stringadd[DualMiniBotTask[P, Q, W, V, ID]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (DualMiniBotTask[P, Q, W, V, ID], B)
- Implicit
- This member is added by an implicit conversion from DualMiniBotTask[P, Q, W, V, ID] toArrowAssoc[DualMiniBotTask[P, Q, W, V, ID]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def >>[Q](that: TypedPostResponse[Q, W, ID])(implicit qw: Postable[Q, W, ID], dg: DataGetter[Q, W, ID]): ComposedResponse[P, Q, W, ID]
- Definition Classes
- TypedPostResponse
- def andThen[Q, V](second: Callback[Q, W, V, ID])(implicit pw: Postable[P, W, ID], qw: Postable[Q, W, ID]): AndThen[P, Q, V, W, ID]
- Definition Classes
- TypedPostResponse
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def ensuring(cond: (DualMiniBotTask[P, Q, W, V, ID]) => Boolean, msg: => Any): DualMiniBotTask[P, Q, W, V, ID]
- Implicit
- This member is added by an implicit conversion from DualMiniBotTask[P, Q, W, V, ID] toEnsuring[DualMiniBotTask[P, Q, W, V, ID]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (DualMiniBotTask[P, Q, W, V, ID]) => Boolean): DualMiniBotTask[P, Q, W, V, ID]
- Implicit
- This member is added by an implicit conversion from DualMiniBotTask[P, Q, W, V, ID] toEnsuring[DualMiniBotTask[P, Q, W, V, ID]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): DualMiniBotTask[P, Q, W, V, ID]
- Implicit
- This member is added by an implicit conversion from DualMiniBotTask[P, Q, W, V, ID] toEnsuring[DualMiniBotTask[P, Q, W, V, ID]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): DualMiniBotTask[P, Q, W, V, ID]
- Implicit
- This member is added by an implicit conversion from DualMiniBotTask[P, Q, W, V, ID] toEnsuring[DualMiniBotTask[P, Q, W, V, ID]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from DualMiniBotTask[P, Q, W, V, ID] toStringFormat[DualMiniBotTask[P, Q, W, V, ID]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: Option[String]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def post(web: W, content: P, id: ID): Future[Vector[PostData[_, W, ID]]]
- Definition Classes
- DualMiniBotTask → TypedPostResponse → PostResponse
- val predicate: (V) => Boolean
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- implicit val pw: Postable[P, W, ID]
- Definition Classes
- TypedPostResponse
- def reduce[Q, R](reduction: (Vector[Q]) => R)(implicit qw: Postable[Q, W, ID], rw: Postable[R, W, ID], dgr: DataGetter[R, W, ID]): ReducedResponse[P, Q, R, W, ID]
- Definition Classes
- TypedPostResponse
- def respond(web: W)(pds: Vector[PostData[PostType, W, ID]]): Future[Vector[PostData[_, W, ID]]]
- Definition Classes
- PostResponse
- val responses: (V) => (P) => Vector[Task[Q]]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def triggerMap[R](transform: (R) => P)(implicit rw: Postable[R, W, ID]): DualMiniBotTask[R, Q, W, ::[V, HNil], ID]
- def triggerWith[R](implicit rw: Postable[R, W, ID], pq: LocalQueryable[P, W, ID]): DualMiniBotTask[R, Q, W, ::[P, ::[V, HNil]], ID]
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def →[B](y: B): (DualMiniBotTask[P, Q, W, V, ID], B)
- Implicit
- This member is added by an implicit conversion from DualMiniBotTask[P, Q, W, V, ID] toArrowAssoc[DualMiniBotTask[P, Q, W, V, ID]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.