Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Credentials.scala « github « rorschach « getbootstrap « com « scala « main « src - github.com/twbs/rorschach.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: add9893526b19b9245349f3d806a925e0ae0de8c (plain)
1
2
3
4
5
6
7
8
9
package com.getbootstrap.rorschach.github

import com.jcabi.github.{Github, RtGithub}
import com.getbootstrap.rorschach.http.{UserAgent, SuperWire}

case class Credentials(username: String, password: String) {
  private def basicGithub: Github = new RtGithub(username, password)
  def github(threshold: Int)(implicit userAgent: UserAgent): Github = new RtGithub(basicGithub.entry.through(classOf[SuperWire], userAgent, new Integer(threshold)))
}