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