You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
437 B
24 lines
437 B
7 years ago
|
package com.xsn.explorer.config
|
||
|
|
||
|
import javax.inject.Inject
|
||
|
|
||
|
import play.api.Configuration
|
||
|
|
||
|
trait SeederConfig {
|
||
|
|
||
|
def queueUrl: String
|
||
|
|
||
|
def isEnabled: Boolean
|
||
|
}
|
||
|
|
||
|
class PlaySeederConfig @Inject() (configuration: Configuration) extends SeederConfig {
|
||
|
|
||
|
override def queueUrl: String = {
|
||
|
configuration.get[String]("seeder.queueUrl")
|
||
|
}
|
||
|
|
||
|
override def isEnabled: Boolean = {
|
||
|
configuration.get[Boolean]("seeder.enabled")
|
||
|
}
|
||
|
}
|