Packages

final case class Resp(resp: String, page: Int = 0, errMsg: Option[String] = None) extends Product with Serializable

Cases class modelizing the server's response to request. Allows doing several useful operations with it (i.e. ask for next page). NB: Can contain an error !

resp

raw Json response from server

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Resp
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Resp(resp: String, page: Int = 0, errMsg: Option[String] = None)

    resp

    raw Json response from server

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. val errMsg: Option[String]
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  9. def hasNext: Boolean
  10. def isError: Boolean
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def jsonObj: JsonObject

    Directly convert the server's response from json string to a JsonObject (api google.Gson)

    Directly convert the server's response from json string to a JsonObject (api google.Gson)

    returns

    JsonObject that can be traversed kind of like a Map with a get() method (no need to manually parse it) If this.isError:

    Annotations
    @throws(classOf[IllegalArgumentException])
    Exceptions thrown
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def next(_nb: Int = 0): Option[Resp]

    _nb

    Page number (if optional defaults to this.page + 1)

    returns

    Next page for current request or None if page didn't have a next field / request failed

  15. def nextAll(size: Int = 0): Vector[JsonObject]

    Follows each next link, extracting the underlying JsonObject until there is no more result to get

    Follows each next link, extracting the underlying JsonObject until there is no more result to get

    NOTE: This method needs only to be called when retrieving study plans

    size

    amount of element to get for each parallel request

    returns

    Vector of each response's page

  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  18. val page: Int
  19. def prettify: String

    returns

    Prettified json response

  20. def productElementNames: Iterator[String]
    Definition Classes
    Product
  21. val resp: String
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    Resp → AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped