package ws
import (
"github.com/mattermost/focalboard/server/model"
)
// UpdateCategoryMessage is sent on block updates.
type UpdateCategoryMessage struct {
Action string `json:"action"`
TeamID string `json:"teamId"`
Category *model.Category `json:"category,omitempty"`
BoardCategories *model.BoardCategoryWebsocketData `json:"blockCategories,omitempty"`
}
// UpdateBlockMsg is sent on block updates.
type UpdateBlockMsg struct {
Block model.Block `json:"block"`
// UpdateBoardMsg is sent on block updates.
type UpdateBoardMsg struct {
Board *model.Board `json:"board"`
// UpdateMemberMsg is sent on membership updates.
type UpdateMemberMsg struct {
Member *model.BoardMember `json:"member"`
// UpdateSubscription is sent on subscription updates.
type UpdateSubscription struct {
Subscription *model.Subscription `json:"subscription"`
// WebsocketCommand is an incoming command from the client.
type WebsocketCommand struct {
Token string `json:"token"`
ReadToken string `json:"readToken"`
BlockIDs []string `json:"blockIds"`