Packages

class EventService extends AnyRef

GitHub events service.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EventService
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EventService(duplicateFilter: Boolean, keyManager: KeyManager, duplicateCheckSize: Int = 1000000)

    duplicateFilter

    if there should be checked for duplicates.

    keyManager

    the keymanager to use for the requests.

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. val EVENTS_SIZE: Int
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. def doPagedRequest(endPoint: String): GitHubResponse

    Do a request for a certain page.

    Do a request for a certain page.

    endPoint

    the page endpoint

    returns

    a github response.

  8. val dupCheck: DuplicateService[String]
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def getLatestEvents(): List[Event]

    Requests the latest events.

    Requests the latest events. Most often there are 3 pages with events, so 3 requests.

    returns

    a list of events.

  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. def parseEvents(body: String): List[Event]

    Parse all JSON events into an Event case class.

    Parse all JSON events into an Event case class.

    body

    the body to parse.

    returns

    the list of events.

  20. def parseNextAndLastPage(linkHeader: Header): (Int, Int)

    Parses the next and last page based on the link header.

    Parses the next and last page based on the link header.

    linkHeader

    the lnkheader to parse from.

    returns

    a tuple containing the next and last page id.

  21. def parsePages(url: String): List[Page]

    Parses the link header into 'pages'.

    Parses the link header into 'pages'.

    url

    the full header value.

    returns

    a list of pages.

  22. var requestHeaders: List[Header]
  23. def setKey(apiKey: String): Unit

    Set the API key of the event-service.

    Set the API key of the event-service.

    apiKey

    the API key to use.

  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. def updateOrAddHeader(key: String, value: Array[String]): Unit

    Updates or adds a request header.

    Updates or adds a request header.

    key

    the header key.

    value

    the header value.

  27. def updateOrAddHeader(header: Header): Unit

    Updates or adds a header.

    Updates or adds a header.

    header

    the header to add or update.

  28. def updateRequestHeaders(reponseHeaders: List[Header]): Unit

    Update all the request headers based on the response headers.

    Update all the request headers based on the response headers.

    reponseHeaders

    the response headers.

  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped