toggle menu
Writeopia
common
switch theme
search in API
writeopia
/
io.writeopia.sdk.model.action
/
Action
Action
sealed
class
Action
An action performed in the text editor.
Inheritors
EraseStory
DeleteStory
BulkDelete
LineBreak
Move
BulkMove
StoryStateChange
Merge
Members
Types
Bulk
Delete
Link copied to clipboard
data
class
BulkDelete
(
val
deletedUnits
:
Map
<
Int
,
StoryStep
>
)
:
Action
Bulk
Move
Link copied to clipboard
data
class
BulkMove
(
val
storyStep
:
List
<
StoryStep
>
,
val
positionFrom
:
Set
<
Int
>
,
val
positionTo
:
Int
)
:
Action
Delete
Story
Link copied to clipboard
data
class
DeleteStory
(
val
storyStep
:
StoryStep
,
val
position
:
Int
)
:
Action
Erase
Story
Link copied to clipboard
data
class
EraseStory
(
val
storyStep
:
StoryStep
,
val
position
:
Int
)
:
Action
Line
Break
Link copied to clipboard
data
class
LineBreak
(
val
storyStep
:
StoryStep
,
val
position
:
Int
)
:
Action
Merge
Link copied to clipboard
data
class
Merge
(
val
receiver
:
StoryStep
,
val
sender
:
StoryStep
,
val
positionFrom
:
Int
,
val
positionTo
:
Int
)
:
Action
Move
Link copied to clipboard
data
class
Move
(
val
storyStep
:
StoryStep
,
val
positionFrom
:
Int
,
val
positionTo
:
Int
)
:
Action
Story
State
Change
Link copied to clipboard
data
class
StoryStateChange
(
val
storyStep
:
StoryStep
,
val
position
:
Int
,
val
selectionStart
:
Int
?
=
null
,
val
selectionEnd
:
Int
?
=
null
)
:
Action