class EventService extends AnyRef
GitHub events service.
- Alphabetic
- By Inheritance
- EventService
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val EVENTS_SIZE: Int
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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.
- val dupCheck: DuplicateService[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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.
-
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.
-
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.
- var requestHeaders: List[Header]
-
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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.
-
def
updateOrAddHeader(header: Header): Unit
Updates or adds a header.
Updates or adds a header.
- header
the header to add or update.
-
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.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )