Plan

@Serializable
data class Plan(val id: UUID, val userId: UUID, val description: String, val periodTime: String, val type: PlanType, val status: PlanStatus, val maxFailureRetry: Int, val action: Action, val hook: List<Hook>, val parentPlanId: UUID?, val createdAt: Long, val updatedAt: Long)

Data class representing a plan.

Constructors

Link copied to clipboard
constructor(id: UUID, userId: UUID, description: String, periodTime: String, type: PlanType, status: PlanStatus, maxFailureRetry: Int, action: Action, hook: List<Hook>, parentPlanId: UUID?, createdAt: Long, updatedAt: Long)

Properties

Link copied to clipboard

The action associated with the plan.

Link copied to clipboard

The timestamp when the plan was created.

Link copied to clipboard

A brief description of the plan.

Link copied to clipboard
val hook: List<Hook>

The list of hooks associated with the plan.

Link copied to clipboard
@Serializable(with = UUIDSerializer::class)
val id: UUID

The unique identifier of the plan.

Link copied to clipboard

The maximum number of retries on failure.

Link copied to clipboard
@Serializable(with = UUIDSerializer::class)
val parentPlanId: UUID?

The unique identifier of the parent plan, if any.

Link copied to clipboard

The period time for the plan.

Link copied to clipboard

The current status of the plan.

Link copied to clipboard

The type of the plan.

Link copied to clipboard

The timestamp when the plan was last updated.

Link copied to clipboard
@Serializable(with = UUIDSerializer::class)
val userId: UUID

The unique identifier of the user associated with the plan.

Functions

Link copied to clipboard

Updates the current plan with the provided update request.