public constructor(objName: string) {
this.objId = objName;
- this.commandsStatistics = { id: this.objId ? this.objId : ' Object id not specified', commandsStatisticsData: {} } as CommandStatistics;
+ this.commandsStatistics = { id: this.objId ? this.objId : 'Object id not specified', commandsStatisticsData: {} };
}
public addMessage(command: RequestCommand | IncomingRequestCommand, messageType: MessageType): void {