Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
For #191 - Changes access control levels for the response parsers
Browse files Browse the repository at this point in the history
  • Loading branch information
boek authored and pocmo committed Jul 20, 2018
1 parent e383431 commit 1d924a0
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ private fun buildQwantParser(): ResponseParser {
/**
* The available Parsers
*/
val defaultResponseParser = buildJSONArrayParser(1)
val azerdictResponseParser = buildJSONObjectParser("suggestions")
val daumResponseParser = buildJSONObjectParser("items")
val qwantResponseParser = buildQwantParser()
internal val defaultResponseParser = buildJSONArrayParser(1)
internal val azerdictResponseParser = buildJSONObjectParser("suggestions")
internal val daumResponseParser = buildJSONObjectParser("items")
internal val qwantResponseParser = buildQwantParser()

/**
* Selects a Parser based on a SearchEngine
*/
fun selectResponseParser(searchEngine: SearchEngine): ResponseParser = when (searchEngine.name) {
internal fun selectResponseParser(searchEngine: SearchEngine): ResponseParser = when (searchEngine.name) {
"Azerdict" -> azerdictResponseParser
"다음지도" -> daumResponseParser
"Qwant" -> qwantResponseParser
Expand Down

0 comments on commit 1d924a0

Please sign in to comment.