forked from jitsi/lib-jitsi-meet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ts) TypeScript enum for JingleSessionState
- Loading branch information
1 parent
f881b3c
commit 1935342
Showing
4 changed files
with
45 additions
and
43 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export enum JingleSessionState { | ||
/** | ||
* The pending Jingle session state which means the session as defined in | ||
* XEP-0166(before 'session-invite/session-accept' took place). | ||
*/ | ||
PENDING = 'pending', | ||
|
||
/** | ||
* The active Jingle session state as defined in XEP-0166 | ||
* (after 'session-invite'/'session-accept'). | ||
*/ | ||
ACTIVE = 'active', | ||
|
||
/** | ||
* The ended Jingle session state as defined in XEP-0166 | ||
* (after 'session-terminate'). | ||
*/ | ||
ENDED = 'ended' | ||
}; | ||
|
||
// exported for backward compatibility | ||
export const PENDING = JingleSessionState.PENDING; | ||
export const ACTIVE = JingleSessionState.ACTIVE; | ||
export const ENDED = JingleSessionState.ENDED; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
/** | ||
* The pending Jingle session state which means the session as defined in | ||
* XEP-0166(before 'session-invite/session-accept' took place). | ||
* | ||
* @type {string} | ||
*/ | ||
export const PENDING: string; | ||
/** | ||
* The active Jingle session state as defined in XEP-0166 | ||
* (after 'session-invite'/'session-accept'). | ||
* | ||
* @type {string} | ||
*/ | ||
export const ACTIVE: string; | ||
/** | ||
* The ended Jingle session state as defined in XEP-0166 | ||
* (after 'session-terminate'). | ||
* @type {string} | ||
*/ | ||
export const ENDED: string; | ||
export declare enum JingleSessionState { | ||
/** | ||
* The pending Jingle session state which means the session as defined in | ||
* XEP-0166(before 'session-invite/session-accept' took place). | ||
*/ | ||
PENDING = "pending", | ||
/** | ||
* The active Jingle session state as defined in XEP-0166 | ||
* (after 'session-invite'/'session-accept'). | ||
*/ | ||
ACTIVE = "active", | ||
/** | ||
* The ended Jingle session state as defined in XEP-0166 | ||
* (after 'session-terminate'). | ||
*/ | ||
ENDED = "ended" | ||
} | ||
export declare const PENDING = JingleSessionState.PENDING; | ||
export declare const ACTIVE = JingleSessionState.ACTIVE; | ||
export declare const ENDED = JingleSessionState.ENDED; |