Skip to content

Commit

Permalink
context in PageQueryImplDsl + withContext
Browse files Browse the repository at this point in the history
  • Loading branch information
intracer committed Aug 7, 2016
1 parent b065187 commit b84deeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ import scala.concurrent.Future

class PageQueryImplDsl(query: Either[Set[Long], Set[String]],
bot: MwBot,
context: Map[String, String] = Map.empty
) extends PageQuery with SinglePageQuery {
context: Map[String, String] = Map.empty) extends PageQuery with SinglePageQuery {

override def withContext(context: Map[String, String]) =
new PageQueryImplDsl(query, bot, context)

override def revisions(namespaces: Set[Int], props: Set[String], continueParam: Option[(String, String)]): Future[Seq[Page]] = {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ trait SinglePageQuery {
comment: Option[String] = None,
ignoreWarnings: Boolean = false): Future[String]

def withContext(context: Map[String, String]): SinglePageQuery
}

0 comments on commit b84deeb

Please sign in to comment.