Mailbox is the communication path to an Asterisk server for operating on mailbox resources
| 3 | // Mailbox is the communication path to an Asterisk server for |
| 4 | // operating on mailbox resources |
| 5 | type 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 |
| 23 | type MailboxData struct { |
no outgoing calls
no test coverage detected