DeltaUpdate

@Serializable
sealed class DeltaUpdate

A single mutation to apply to an ACEPlaybook, as produced by the curator and consumed by ACEPlaybook.applyDelta.

Inheritors

Types

Link copied to clipboard
data class Add(val content: String, val sectionName: String, val sectionShortName: String) : DeltaUpdate

Adds a bullet with content to the section identified by sectionShortName, creating it (named sectionName) if absent.

Link copied to clipboard
data class Delete(val id: String) : DeltaUpdate

Removes the bullet with id from the playbook.

Link copied to clipboard
data class Update(val id: String, val newContent: String) : DeltaUpdate

Replaces the content of the bullet with id by newContent.