aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/common/domain/RecordRequestId.scala
blob: 901ff664dd4f47e861c39573b75b8ecdee2ef45c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package xyz.driver.common.domain

import java.util.UUID

import xyz.driver.common.logging._

case class RecordRequestId(id: UUID) {
  override def toString: String = id.toString
}

object RecordRequestId {

  def apply() = new RecordRequestId(UUID.randomUUID())

  implicit def toPhiString(x: RecordRequestId): PhiString = phi"${x.id}"
}