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.
23 lines
437 B
23 lines
437 B
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")
|
|
}
|
|
}
|
|
|