This commit is contained in:
Taso committed 2021-04-18 15:38:50 -04:00
1 parent 949ea4ba4b
commit e01fa0ab0a
16 files changed
+406 -231

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
import Collection from '@discordjs/collection';
import { CallHistoryItem } from '../../../typings/call';
import { mainLogger } from '../sv_logger';
import CallsDB, { CallsRepo } from './calls.db';
import { v4 as uuidv4 } from 'uuid';
import PlayerService from '../players/player.service';
const callLogger = mainLogger.child({ module: 'calls' });
class CallsService {
private callMap: Collection<string, CallHistoryItem>;
private readonly callsDB: CallsRepo;
constructor() {
this.callMap = new Collection();
this.callsDB = CallsDB;
}
async inititializeCall(src: number, receivingNumber: string) {
// Create initial call data
const startCallTimeUnix = new Date().getTime() / 1000;
const callIdentifier = uuidv4();
const receiverIdentifier = PlayerService.getIdentifier();
}
}
export default new CallsService();