MCPcopy Create free account
hub / github.com/CyCoreSystems/ari / Mailbox

Interface Mailbox

mailbox.go:5–20  ·  view source on GitHub ↗

Mailbox is the communication path to an Asterisk server for operating on mailbox resources

Source from the content-addressed store, hash-verified

3// Mailbox is the communication path to an Asterisk server for
4// operating on mailbox resources
5type Mailbox interface {
6 // Get gets a handle to the mailbox for further operations
7 Get(key *Key) *MailboxHandle
8
9 // List lists the mailboxes in asterisk
10 List(filter *Key) ([]*Key, error)
11
12 // Data gets the current state of the mailbox
13 Data(key *Key) (*MailboxData, error)
14
15 // Update updates the state of the mailbox, or creates if does not exist
16 Update(key *Key, oldMessages int, newMessages int) error
17
18 // Delete deletes the mailbox
19 Delete(key *Key) error
20}
21
22// MailboxData respresents the state of an Asterisk (voice) mailbox
23type MailboxData struct {

Callers 3

DataMethod · 0.65
UpdateMethod · 0.65
DeleteMethod · 0.65

Implementers 6

Mailboxclient/arimocks/Mailbox.go
Mailbox_Expecterclient/arimocks/Mailbox.go
DeviceStateclient/arimocks/DeviceState.go
DeviceState_Expecterclient/arimocks/DeviceState.go
DeviceStateclient/native/device.go
Mailboxclient/native/mailbox.go

Calls

no outgoing calls

Tested by

no test coverage detected