Skip to content

Commit

Permalink
Create incoming-call.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
gekkedev authored Jun 11, 2024
1 parent d701108 commit 815b90a
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/api/model/incoming-call.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* This file is part of WPPConnect.
*
* WPPConnect is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* WPPConnect is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with WPPConnect. If not, see <https://www.gnu.org/licenses/>.
*/

export interface IncomingCall {
/** alphanumeric ID of the call, can e.g. usable for hanging up */
id: string,
/** ID of the caller, can be used to message them directly */
peerJid: string,
/** Epoch timestamp (seconds) */
offerTime: number,
isVideo: boolean,
isGroup: boolean,
groupJid: string | null,
canHandleLocally: boolean,
outgoing: boolean,
isSilenced: boolean,
offerReceivedWhileOffline: boolean,
webClientShouldHandle: boolean,
participants: any[]
}

0 comments on commit 815b90a

Please sign in to comment.