Class

ru.pavkin.todoist.api.dispatch.impl.circe

DispatchAuthorizedAPI

Related Doc: package circe

Permalink

class DispatchAuthorizedAPI extends DispatchAPI with ExecutedAuthorizedAPI[Result, L, P, Req, Json]

Source
DispatchAuthorizedAPI.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DispatchAuthorizedAPI
  2. ExecutedAuthorizedAPI
  3. AuthorizedAPI
  4. DispatchAPI
  5. ExecutedAPI
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DispatchAuthorizedAPI(requestFactory: AuthorizedRequestFactory[RawRequest, Req], executor: Aux[Req, Result, Json])(implicit ec: ExecutionContext)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from DispatchAuthorizedAPI to any2stringadd[DispatchAuthorizedAPI] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (DispatchAuthorizedAPI, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from DispatchAuthorizedAPI to ArrowAssoc[DispatchAuthorizedAPI] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. implicit val F: Functor[L]

    Permalink
    Definition Classes
    DispatchAPIExecutedAPI
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. implicit val ec: ExecutionContext

    Permalink
    Definition Classes
    DispatchAuthorizedAPIDispatchAPI
  10. def ensuring(cond: (DispatchAuthorizedAPI) ⇒ Boolean, msg: ⇒ Any): DispatchAuthorizedAPI

    Permalink
    Implicit information
    This member is added by an implicit conversion from DispatchAuthorizedAPI to Ensuring[DispatchAuthorizedAPI] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (DispatchAuthorizedAPI) ⇒ Boolean): DispatchAuthorizedAPI

    Permalink
    Implicit information
    This member is added by an implicit conversion from DispatchAuthorizedAPI to Ensuring[DispatchAuthorizedAPI] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): DispatchAuthorizedAPI

    Permalink
    Implicit information
    This member is added by an implicit conversion from DispatchAuthorizedAPI to Ensuring[DispatchAuthorizedAPI] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): DispatchAuthorizedAPI

    Permalink
    Implicit information
    This member is added by an implicit conversion from DispatchAuthorizedAPI to Ensuring[DispatchAuthorizedAPI] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. val executor: Aux[Req, Result, Json]

    Permalink
    Definition Classes
    DispatchAuthorizedAPIDispatchAPIExecutedAPI
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. val flattener: DispatchFlattener

    Permalink
    Definition Classes
    DispatchAPIExecutedAPI
  19. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from DispatchAuthorizedAPI to StringFormat[DispatchAuthorizedAPI] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. def get[R](implicit IR: HasRawRequest[R], parser: SingleResponseDecoder[P, Json, R]): SingleQueryDefinition[Result, P, R, Json]

    Permalink

    Returns a single resource request definition, that after being executed will return the resource of type R

    Returns a single resource request definition, that after being executed will return the resource of type R

    Definition Classes
    ExecutedAuthorizedAPIAuthorizedAPI
  21. def getAll[R <: HList](implicit IR: HasRawRequest[R], ID: IsDistinctConstraint[R], parser: MultipleResponseDecoder[P, Json, R]): MultipleQueryDefinition[Result, P, R, Json]

    Permalink

    Returns a multiple resources request definition, that after being executed will return an HList of resources, specified in phantom type parameter R

    Returns a multiple resources request definition, that after being executed will return an HList of resources, specified in phantom type parameter R

    Example usage:

    api.getAll[Projects :: Labels :: Tasks :: HNil]
    // will return List[Projects] :: List[Labels] :: List[Tasks] :: HNil upon execution

    Syntax helpers are available for working with multiple resources response. After handling the API effect, you can call these methods on the result:

    res.projects // returns List[Project]
    res.labels // returns List[Label]
    // ...
    // etc, but only for resources that were requested

    For syntax helpers to be available, you should import the syntax toolkit, for example:

    import ru.pavkin.todoist.api.dispatch.circe.default.syntax._
    Definition Classes
    ExecutedAuthorizedAPIAuthorizedAPI
    Note

    Doesn't allow to specify duplicate resources.

  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. def perform[C, R](command: C)(implicit trr: ToRawRequest[C], cr: Aux[C, R], parser: Aux[P, C, Json, R]): SingleCommandDefinition[Result, P, C, R, Json]

    Permalink

    Returns a single command request definition, that when being executed performs a supplied command: C and returns command result of type R.

    Returns a single command request definition, that when being executed performs a supplied command: C and returns command result of type R.

    All command results are successors of ru.pavkin.todoist.api.core.model.TodoistCommandResult:

    - For ru.pavkin.todoist.api.core.model.SimpleCommand returns ru.pavkin.todoist.api.core.model.CommandResult - For ru.pavkin.todoist.api.core.model.TempIdCommand returns ru.pavkin.todoist.api.core.model.TempIdCommandResult

    command

    Command to execute within the request

    Definition Classes
    ExecutedAuthorizedAPIAuthorizedAPI
  29. def performAll[C <: HList, R <: HList, CR <: HList](commands: C)(implicit R: Aux[C, CR], trr: ToRawRequest[CR], cr: Aux[CR, R], parser: Aux[P, CR, Json, R]): MultipleCommandDefinition[Result, P, CR, R, Json]

    Permalink

    Returns a multiple commands request definition, that when being executed performs all supplied commands and returns an HList of corresponding command results.

    Returns a multiple commands request definition, that when being executed performs all supplied commands and returns an HList of corresponding command results. See AuthorizedAPI.perform method docs for command results details

    Syntax helpers are available for multiple command results response. After handling the API effect, you can call these methods on the result:

    res.resultFor(_0) // returns strictly typed result of the first command on the list
    res.resultFor(_1) // returns strictly typed result of the seconds command on the list
    // ...
    // and so on, but only for the amount of commands that was actually sent
    
    res.resultFor(uuid:UUID) // tries to find result for command with specific uuid
    // returns an Option[TodoistCommandResult]

    For syntax helpers to be available, you should import the syntax toolkit, for example:

    import ru.pavkin.todoist.api.dispatch.circe.default.syntax._
    commands

    HList of commands to execute

    Definition Classes
    ExecutedAuthorizedAPIAuthorizedAPI
  30. val requestFactory: AuthorizedRequestFactory[RawRequest, Req]

    Permalink
    Definition Classes
    DispatchAuthorizedAPIExecutedAPI
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def [B](y: B): (DispatchAuthorizedAPI, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from DispatchAuthorizedAPI to ArrowAssoc[DispatchAuthorizedAPI] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from ExecutedAuthorizedAPI[Result, L, P, Req, Json]

Inherited from AuthorizedAPI[Result, P, Json]

Inherited from DispatchAPI

Inherited from ExecutedAPI[Result, L, P, Req, Json]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from DispatchAuthorizedAPI to any2stringadd[DispatchAuthorizedAPI]

Inherited by implicit conversion StringFormat from DispatchAuthorizedAPI to StringFormat[DispatchAuthorizedAPI]

Inherited by implicit conversion Ensuring from DispatchAuthorizedAPI to Ensuring[DispatchAuthorizedAPI]

Inherited by implicit conversion ArrowAssoc from DispatchAuthorizedAPI to ArrowAssoc[DispatchAuthorizedAPI]

Ungrouped