def fromXml()

in app/models/MdcPing.scala [14:22]


  def fromXml(node:NodeSeq):Either[String,MdcPing] = try {
    Right(new MdcPing(
      node \@ "ip",
      (node \@ "packetloss").toInt,
      stringToBool(node \@ "ping")
    ))
  } catch {
    case ex:Throwable=>Left(ex.toString)
  }