All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.touk.nussknacker.restmodel.process.ProcessId.scala Maven / Gradle / Ivy

There is a newer version: 1.18.1
Show newest version
package pl.touk.nussknacker.restmodel.process

import io.circe.generic.extras.semiauto._
import io.circe.{Decoder, Encoder}
import pl.touk.nussknacker.engine.api.process.ProcessName

object ProcessId {
  implicit val ProcessIdEncoder: Encoder[ProcessId] = deriveUnwrappedEncoder
  implicit val ProcessIdDecoder: Decoder[ProcessId] = deriveUnwrappedDecoder
}

final case class ProcessId(value: Long) extends AnyVal

final case class ProcessIdWithName(id: ProcessId, name: ProcessName)

final case class ProcessIdWithNameAndCategory(id: ProcessId, name: ProcessName, category: String)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy