30 lines
417 B
JavaScript
30 lines
417 B
JavaScript
export class CallStats {
|
|
/**
|
|
* @param {CallStats} stats
|
|
*/
|
|
constructor(stats) {
|
|
for (const [ key, value ] of Object.entries(stats))
|
|
this[key] = value;
|
|
}
|
|
|
|
/**
|
|
* @type {number}
|
|
*/
|
|
totalCallsThisMonth;
|
|
/**
|
|
* @type {number}
|
|
*/
|
|
totalCallsEverPlaced;
|
|
/**
|
|
* @type {number}
|
|
*/
|
|
totalCallsMade;
|
|
/**
|
|
* @type {CallRecord}
|
|
*/
|
|
allTimeRecord;
|
|
/**
|
|
* @type {boolean}
|
|
*/
|
|
isNewRecord = false;
|
|
} |