rooms

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is the rooms API client

func New

func New(webexClient *webexsdk.Client, config *Config) *Client

New creates a new Rooms plugin

func (*Client) Create

func (c *Client) Create(room *Room) (*Room, error)

Create creates a new room

func (*Client) Delete

func (c *Client) Delete(roomID string) error

Delete removes a room

func (*Client) Get

func (c *Client) Get(roomID string) (*Room, error)

Get returns a single room by ID

func (*Client) List

func (c *Client) List(options *ListOptions) (*RoomsPage, error)

List returns a list of rooms

func (*Client) Update

func (c *Client) Update(roomID string, room *Room) (*Room, error)

Update updates an existing room

type Config

type Config struct {
}

Config holds the configuration for the Rooms plugin

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns the default configuration for the Rooms plugin

type ListOptions

type ListOptions struct {
	TeamID string `url:"teamId,omitempty"`
	Type   string `url:"type,omitempty"`
	SortBy string `url:"sortBy,omitempty"`
	Max    int    `url:"max,omitempty"`
}

ListOptions contains the options for listing rooms

type Room

type Room struct {
	ID           string     `json:"id,omitempty"`
	Title        string     `json:"title,omitempty"`
	TeamID       string     `json:"teamId,omitempty"`
	IsLocked     bool       `json:"isLocked,omitempty"`
	Type         string     `json:"type,omitempty"`
	CreatorID    string     `json:"creatorId,omitempty"`
	Created      *time.Time `json:"created,omitempty"`
	LastActivity *time.Time `json:"lastActivity,omitempty"`
}

Room represents a Webex room

type RoomWithReadStatus

type RoomWithReadStatus struct {
	ID               string     `json:"id,omitempty"`
	Title            string     `json:"title,omitempty"`
	Type             string     `json:"type,omitempty"`
	IsLocked         bool       `json:"isLocked,omitempty"`
	TeamID           string     `json:"teamId,omitempty"`
	LastActivityDate *time.Time `json:"lastActivityDate,omitempty"`
	LastSeenDate     *time.Time `json:"lastSeenDate,omitempty"`
}

RoomWithReadStatus represents a room with read status information

type RoomsPage

type RoomsPage struct {
	Items []Room `json:"items"`
	*webexsdk.Page
}

RoomsPage represents a paginated list of rooms

Jump to

Keyboard shortcuts

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