NCResult

object NCResult

Convenient factory for creating NCResult instances.

Companion:
class
Source:
NCResult.scala
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(body: Any, resultType: NCResultType, intentId: String): NCResult

Creates new result instance with given parameters.

Creates new result instance with given parameters.

Value parameters:
body

Result body.

intentId

Intent ID that produced the result.

resultType

Result type.

Source:
NCResult.scala
def apply(body: Any, resultType: NCResultType): NCResult

Creates new result instance with given parameters. Note that intent ID will be set to None.

Creates new result instance with given parameters. Note that intent ID will be set to None.

Value parameters:
body

Result body.

resultType

Result type.

Source:
NCResult.scala
def apply(body: Any): NCResult

Creates new result instance with given parameters. Note that intent ID will be set to None and result type will be set to NCResultType.ASK_RESULT.

Creates new result instance with given parameters. Note that intent ID will be set to None and result type will be set to NCResultType.ASK_RESULT.

Value parameters:
body

Result body.

Source:
NCResult.scala