MeetingManager
Extends:
ContactManager instance is obtained by calling the Session#getMeetingManager method of Session and must not be directly instantiated. Once the MeetingManager instance is obtained MeetingManager#init method must be called to initialize it.
Events
Example:
meetingManager.init().then(function() {
meetingManager.getMeetings().forEach(function(meeting) {
console.log(meeting.name);
});
});
Method Summary
Public Methods | ||
public |
createMeeting(name: string, participants: Object[], validSince: number, sendSmsViaWac: boolean): Promise<Meeting> Creates a meeting |
|
public |
getMeetings(): Array<Meetings> Retrieves a list with the available meetings |
|
public |
init(query: Object): Promise<ContactManager, Error> Initializes the meeting manager |
|
public |
Uninitializes the meeting manager |
|
public |
updateMeeting(id: String, name: String, participants: Array, validSince: Object, sendSmsViaWac: boolean): * Update a meeting |
Public Methods
public createMeeting(name: string, participants: Object[], validSince: number, sendSmsViaWac: boolean): Promise<Meeting> source
Creates a meeting
Params:
Name | Type | Attribute | Description |
name | string | The name of the meeting. |
|
participants | Object[] | The participants of the new meeting session. |
|
validSince | number | The timestamp of the moment when the meeting starts. |
|
sendSmsViaWac | boolean |
|
If true, an invitation for the meeting will be sent in an SMS by the server. |
public init(query: Object): Promise<ContactManager, Error> source
Initializes the meeting manager
Params:
Name | Type | Attribute | Description |
query | Object | Object used for filtering the meetings |
Return:
Promise<ContactManager, Error> | A promise that returns when fulfilled the contact manager instance |