bbb

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCall

func GetCall(callName CallType) string

func GetSub

func GetSub(SubName SubType) (string, []interface{})

Returns the sub and all parameters IMPORTENT: If the name conatins the word `INTERNALID`, it MUST be replaced with the internal meeting id!!!

Types

type CallType

type CallType int
const (
	StreamCursorCall CallType = iota //BECAREFUL: The word INTERNALID must be replaced with the internal meeting id!!!
	VoidConnectionCall
	StopUserTypingCall
	SendGroupChatMsgCall
	StartUserTypingCall
	ChatMessageBeforeJoinCounterCall
	UserChangedLocalSettingsCall
	ValidateAuthTokenCall
	GetPadIdCall
	CreateSessionCall
	UpdateCaptionsOwnerCall
	FetchMessagePerPageCall
	UserShareWebcamCall
	ZoomSlideCall
	SwitchSlideCall
	SetEmojiStatusCall
	ToggleVoiceCall
	UserUnshareWebcamCall
	SendBulkAnnotationsCall
	ClearWhiteboardCall
	UndoAnnotationCall
	AddGlobalAccessCall
	MuteAllExceptPresenterCall
	MuteAllUsersCall
	ToggleWebcamsOnlyForModeratorCall
	ToggleLockSettingsCall
	ChangeGuestPolicyCall
	EndAllBreakoutsCall
	CreateBreakoutRoomCall
	CreateGroupCall
	RemovePresentationCall
	UserLeftMeetingCall
	SetExitReasonCall
)

type Chat

type Chat struct {
	ChatId       string             `json:"chatId"`
	MeetingId    string             `json:"meetingId"`
	Access       string             `json:"access"`
	CreatedBy    string             `json:"createdBy"`
	Participants []ChatParticipants `json:"participants"`
	Users        []string           `json:"users"`
}

For GoupChat and Private Chats

type ChatParticipants

type ChatParticipants struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	Role string `json:"role"`
}

type Meeting

type Meeting struct {
	MeetingId            string                   `json:"meetingId"`
	BreakoutProps        MeetingBreakoutProps     `json:"breakoutProps"`
	DurationProps        MeetingDurationProps     `json:"durationProps"`
	Groups               []interface{}            `json:"groups"`
	GuestLobbyMessage    string                   `json:"guestLobbyMessage"`
	Layout               string                   `json:"layout"`
	LockSettingsProps    MeetingLockSettingsProps `json:"lockSettingsProps"`
	MeetingEnded         bool                     `json:"meetingEnded"`
	MeetingProp          MeetingMeetingProp       `json:"meetingProp"`
	MetadataProp         MeetingMetadataProp      `json:"metadataProp"`
	PublishedPoll        bool                     `json:"publishedPoll"`
	RandomlySelectedUser []interface{}            `json:"randomlySelectedUser"`
	SystemProps          MeetingSystemProps       `json:"systemProps"`
	UsersProp            MeetingUsersProp         `json:"usersProp"`
	VoiceProp            MeetingVoiceProp         `json:"voiceProp"`
	WelcomeProp          MeetingWelcomeProp       `json:"welcomeProp"`
}

type MeetingBreakoutProps

type MeetingBreakoutProps struct {
	BreakoutRooms      []interface{} `json:"breakoutRooms"`
	FreeJoin           bool          `json:"freeJoin"`
	ParentId           string        `json:"parentId"`
	PrivateChatEnabled bool          `json:"privateChatEnabled"`
	Record             bool          `json:"record"`
	Sequence           int           `json:"sequence"`
}

type MeetingDurationProps

type MeetingDurationProps struct {
	CreatedDate                            string `json:"createdDate"`
	CreatedTime                            int    `json:"createdTime"`
	Duration                               int    `json:"duration"`
	EndWhenNoModerator                     bool   `json:"endWhenNoModerator"`
	EndWhenNoModeratorDelayInMinutes       int    `json:"endWhenNoModeratorDelayInMinutes"`
	MeetingExpireIfNoUserJoinedInMinutes   int    `json:"meetingExpireIfNoUserJoinedInMinutes"`
	MeetingExpireWhenLastUserLeftInMinutes int    `json:"meetingExpireWhenLastUserLeftInMinutes"`
	TimeRemaining                          int    `json:"timeRemaining"`
	UserActivitySignResponseDelayInMinutes int    `json:"userActivitySignResponseDelayInMinutes"`
	UserInactivityInspectTimerInMinutes    int    `json:"userInactivityInspectTimerInMinutes"`
	UserInactivityThresholdInMinutes       int    `json:"userInactivityThresholdInMinutes"`
}

type MeetingLockSettingsProps

type MeetingLockSettingsProps struct {
	DisableCam             bool   `json:"disableCam"`
	DisableMic             bool   `json:"disableMic"`
	DisableNotes           bool   `json:"disableNotes"`
	DisablePrivateChat     bool   `json:"disablePrivateChat"`
	DisablePublicChat      bool   `json:"disablePublicChat"`
	HideUserList           bool   `json:"hideUserList"`
	HideViewersCursor      bool   `json:"hideViewersCursor"`
	LockOnJoin             bool   `json:"lockOnJoin"`
	LockOnJoinConfigurable bool   `json:"lockOnJoinConfigurable"`
	LockedLayout           bool   `json:"lockedLayout"`
	SetBy                  string `json:"setBy"`
}

type MeetingMeetingProp

type MeetingMeetingProp struct {
	DisabledFeatures []string `json:"disabledFeatures"`
	ExtId            string   `json:"extId"`
	IntId            string   `json:"intId"`
	IsBreakout       bool     `json:"isBreakout"`
	MeetingCameraCap int      `json:"meetingCameraCap"`
	Name             string   `json:"name"`
}

type MeetingMetadataProp

type MeetingMetadataProp struct {
	Metadata map[string]interface{} `json:"metadata"`
}

type MeetingSystemProps

type MeetingSystemProps struct {
	Html5InstanceId int `json:"html5InstanceId"`
}

type MeetingUsersProp

type MeetingUsersProp struct {
	AllowModsToEjectCameras bool   `json:"allowModsToEjectCameras"`
	AllowModsToUnmuteUsers  bool   `json:"allowModsToUnmuteUsers"`
	AuthenticatedGuest      bool   `json:"authenticatedGuest"`
	GuestPolicy             string `json:"guestPolicy"`
	MaxUsers                int    `json:"maxUsers"`
	MeetingLayout           string `json:"meetingLayout"`
	UserCameraCap           int    `json:"userCameraCap"`
	WebcamsOnlyForModerator bool   `json:"webcamsOnlyForModerator"`
}

type MeetingVoiceProp

type MeetingVoiceProp struct {
	DialNumber  string `json:"dialNumber"`
	MuteOnStart bool   `json:"muteOnStart"`
	TelVoice    string `json:"telVoice"`
	VoiceConf   string `json:"voiceConf"`
}

type MeetingWelcomeProp

type MeetingWelcomeProp struct {
	WelcomeMsg         string `json:"welcomeMsg"`
	WelcomeMsgTemplate string `json:"welcomeMsgTemplate"`
}

type Message

type Message struct {
	ID                 string `json:"id"`
	Timestamp          int64  `json:"timestamp"`
	CorrelationID      string `json:"correlationId"`
	ChatEmphasizedText bool   `json:"chatEmphasizedText"`
	Message            string `json:"message"`
	Sender             string `json:"sender"`
	SenderName         string `json:"senderName"`
	SenderRole         string `json:"senderRole"`
	MeetingId          string `json:"meetingId"`
	ChatId             string `json:"chatId"`
}

func ConvertInToMessage

func ConvertInToMessage(content ddp.Update) Message

Converts a map[string]interface{} (from ddp.Update) into a Message object

type MessageSend

type MessageSend struct {
	ID                 string            `json:"correlationId"`
	Sender             MessageSendSender `json:"sender"`
	ChatEmphasizedText bool              `json:"chatEmphasizedText"`
	Message            string            `json:"message"`
}

type MessageSendSender

type MessageSendSender struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	Role string `json:"role"`
}

type SubType

type SubType int
const (
	UsersSub SubType = iota
	PollsSub
	PresentationsSub
	SlidesSub
	SlidePositionsSub
	CaptionsSub
	VoiceUsersSub
	WhiteboardMultiUserSub
	ScreenshareSub
	GroupChatSub
	PresentationPodsSub
	UsersSettingsSub
	GuestUserSub
	UsersInfosSub
	MeetingTimeRemainingSub
	LocalSettingsSub
	UsersTypingSub
	RecordMeetingsSub
	VideoStreamsSub
	ConnectionStatusSub
	VoiceCallStatesSub
	ExternalVideoMeetingsSub
	BreakoutsSub
	BreakoutsHistorySub
	PadsSub
	PadsSessionsSub
	PadsUpdatesSub
	UsersPersistentDataSub
	StreamCursorSub
	StreamAnnotationsAddedSub
	StreamAnnotationsRemovedSub
	GroupChatMsgSub
	CurrentPollSub
	CurrentUser
)

type User

type User struct {
	MeetingID               string            `json:"meetingId"`
	UserID                  string            `json:"userId"`
	ClientType              string            `json:"clientType"`
	Validated               bool              `json:"validated"`
	Left                    bool              `json:"left"`
	Approved                bool              `json:"approved"`
	AuthTokenValidatedTime  int64             `json:"authTokenValidatedTime"`
	InactivityCheck         bool              `json:"inactivityCheck"`
	LoginTime               int64             `json:"loginTime"`
	Authed                  bool              `json:"authed"`
	Avatar                  string            `json:"avatar"`
	BreakoutProps           UserBreakoutProps `json:"breakoutProps"`
	Color                   string            `json:"color"`
	EffectiveConnectionType interface{}       `json:"effectiveConnectionType"`
	Emoji                   string            `json:"emoji"`
	ExtID                   string            `json:"extId"`
	Guest                   bool              `json:"guest"`
	GuestStatus             string            `json:"guestStatus"`
	IntID                   string            `json:"intId"`
	Locked                  bool              `json:"locked"`
	LoggedOut               bool              `json:"loggedOut"`
	Mobile                  bool              `json:"mobile"`
	Name                    string            `json:"name"`
	Pin                     bool              `json:"pin"`
	Presenter               bool              `json:"presenter"`
	ResponseDelay           int               `json:"responseDelay"`
	Role                    string            `json:"role"`
	SortName                string            `json:"sortName"`
}

For users and current-user

type UserBreakoutProps

type UserBreakoutProps struct {
	IsBreakoutUser bool   `json:"isBreakoutUser"`
	ParentID       string `json:"parentId"`
}

type VoiceUser

type VoiceUser struct {
	IntId       string `json:"intId"`
	MeetingId   string `json:"meetingId"`
	CallerName  string `json:"callerName"`
	CallerNum   string `json:"callerNum"`
	CallingWith string `json:"callingWith"`
	Joined      bool   `json:"joined"`
	ListenOnly  bool   `json:"listenOnly"`
	Muted       bool   `json:"muted"`
	Spoke       bool   `json:"spoke"`
	Talking     bool   `json:"talking"`
	VoiceConf   string `json:"voiceConf"`
	VoiceUserId string `json:"voiceUserId"`
}

For voice-users

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL