Format
This commit is contained in:
@@ -15,14 +15,14 @@ const (
|
||||
)
|
||||
|
||||
var (
|
||||
ErrRoomNotFound = errors.New("room not found")
|
||||
ErrRoomNotFound = errors.New("room not found")
|
||||
ErrParticipantNotFound = errors.New("participant not found")
|
||||
ErrUnauthorized = errors.New("unauthorized")
|
||||
ErrRoomFull = errors.New("room is full")
|
||||
ErrInvalidRole = errors.New("invalid role")
|
||||
ErrSpectatorsBlocked = errors.New("spectators are not allowed")
|
||||
ErrPasswordRequired = errors.New("password required or invalid")
|
||||
ErrInvalidCard = errors.New("invalid card")
|
||||
ErrUnauthorized = errors.New("unauthorized")
|
||||
ErrRoomFull = errors.New("room is full")
|
||||
ErrInvalidRole = errors.New("invalid role")
|
||||
ErrSpectatorsBlocked = errors.New("spectators are not allowed")
|
||||
ErrPasswordRequired = errors.New("password required or invalid")
|
||||
ErrInvalidCard = errors.New("invalid card")
|
||||
)
|
||||
|
||||
type RoomSettings struct {
|
||||
@@ -104,11 +104,11 @@ type JoinRoomInput struct {
|
||||
}
|
||||
|
||||
type CreateRoomResult struct {
|
||||
RoomID string `json:"roomId"`
|
||||
RoomID string `json:"roomId"`
|
||||
CreatorParticipantID string `json:"creatorParticipantId"`
|
||||
AdminToken string `json:"adminToken"`
|
||||
ParticipantLink string `json:"participantLink"`
|
||||
AdminLink string `json:"adminLink"`
|
||||
AdminToken string `json:"adminToken"`
|
||||
ParticipantLink string `json:"participantLink"`
|
||||
AdminLink string `json:"adminLink"`
|
||||
}
|
||||
|
||||
type JoinRoomResult struct {
|
||||
@@ -134,18 +134,18 @@ type RoomLinks struct {
|
||||
}
|
||||
|
||||
type PublicRoomState struct {
|
||||
RoomID string `json:"roomId"`
|
||||
RoomName string `json:"roomName"`
|
||||
Cards []string `json:"cards"`
|
||||
Revealed bool `json:"revealed"`
|
||||
RevealMode string `json:"revealMode"`
|
||||
MaxPeople int `json:"maxPeople"`
|
||||
AllowSpectators bool `json:"allowSpectators"`
|
||||
AnonymousVoting bool `json:"anonymousVoting"`
|
||||
AutoReset bool `json:"autoReset"`
|
||||
VotingTimeoutSec int `json:"votingTimeoutSec"`
|
||||
Participants []PublicParticipant `json:"participants"`
|
||||
SelfParticipantID string `json:"selfParticipantId"`
|
||||
ViewerIsAdmin bool `json:"viewerIsAdmin"`
|
||||
Links RoomLinks `json:"links"`
|
||||
RoomID string `json:"roomId"`
|
||||
RoomName string `json:"roomName"`
|
||||
Cards []string `json:"cards"`
|
||||
Revealed bool `json:"revealed"`
|
||||
RevealMode string `json:"revealMode"`
|
||||
MaxPeople int `json:"maxPeople"`
|
||||
AllowSpectators bool `json:"allowSpectators"`
|
||||
AnonymousVoting bool `json:"anonymousVoting"`
|
||||
AutoReset bool `json:"autoReset"`
|
||||
VotingTimeoutSec int `json:"votingTimeoutSec"`
|
||||
Participants []PublicParticipant `json:"participants"`
|
||||
SelfParticipantID string `json:"selfParticipantId"`
|
||||
ViewerIsAdmin bool `json:"viewerIsAdmin"`
|
||||
Links RoomLinks `json:"links"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user