package code.remotedata

import akka.pattern.ask
import code.actorsystem.ObpActorInit
import code.sanitycheck.{RemotedataSanityCheckCaseClasses, SanityChecks}
import net.liftweb.common.Box


object RemotedataSanityCheck extends ObpActorInit with SanityChecks {

  val cc = RemotedataSanityCheckCaseClasses

  def remoteAkkaSanityCheck(remoteDataSecret: String): Box[Boolean] = getValueFromFuture(
    (actor ? cc.remoteAkkaSanityCheck(remoteDataSecret)).mapTo[Box[Boolean]]
  )

}
