-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 proxyconnection constants
- Loading branch information
1 parent
74721c4
commit 5747f4a
Showing
3 changed files
with
23 additions
and
19 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,12 @@ | ||
/** | ||
* The know jingle actions that can be sent and should be acted upon by | ||
* {@code ProxyConnectionService} and {@code ProxyConnectionPC}. | ||
*/ | ||
export enum ACTIONS { | ||
ACCEPT = 'session-accept', | ||
CONNECTION_ERROR = 'connection-error-encountered', | ||
INITIATE = 'session-initiate', | ||
TERMINATE = 'session-terminate', | ||
TRANSPORT_INFO = 'transport-info', | ||
UNAVAILABLE = 'unavailable' | ||
}; |
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,8 +1,12 @@ | ||
export namespace ACTIONS { | ||
const ACCEPT: string; | ||
const CONNECTION_ERROR: string; | ||
const INITIATE: string; | ||
const TERMINATE: string; | ||
const TRANSPORT_INFO: string; | ||
const UNAVAILABLE: string; | ||
/** | ||
* The know jingle actions that can be sent and should be acted upon by | ||
* {@code ProxyConnectionService} and {@code ProxyConnectionPC}. | ||
*/ | ||
export declare enum ACTIONS { | ||
ACCEPT = "session-accept", | ||
CONNECTION_ERROR = "connection-error-encountered", | ||
INITIATE = "session-initiate", | ||
TERMINATE = "session-terminate", | ||
TRANSPORT_INFO = "transport-info", | ||
UNAVAILABLE = "unavailable" | ||
} |