import { ArenaInfo } from '../../../models/arena-info' ; import { OverwolfService } from '../../overwolf.service' ; import { MindVisionOperationFacade } from './mind-vision-operation-facade' ; import { MindVisionService } from './mind-vision.service' ; export class GetArenaInfoOperation extends MindVisionOperationFacade < ArenaInfo > { constructor ( mindVision , ow ) { super ( ow , 'getArenaInfo' , ( ) => mindVision . getArenaInfo ( ) , ( arenaInfo ) => arenaInfo . Wins == null || arenaInfo . Wins < 0 , ( arenaInfo ) => Object . assign ( new ArenaInfo ( ) , { wins : arenaInfo . Wins , losses : arenaInfo . Losses , heroCardId : arenaInfo . HeroCardId , } as ArenaInfo ) ) ; } }