import { BattlegroundsInfo } from '../../../models/battlegrounds-info' ; import { OverwolfService } from '../../overwolf.service' ; import { MindVisionOperationFacade } from './mind-vision-operation-facade' ; import { MindVisionService } from './mind-vision.service' ; export class GetBattlegroundsInfoOperation extends MindVisionOperationFacade < BattlegroundsInfo > { constructor ( mindVision , ow ) { super ( ow , 'getBattlegroundsInfo' , ( ) => mindVision . getBattlegroundsInfo ( ) , ( battlegroundsInfo ) => battlegroundsInfo . Rating == - 1 , ( battlegroundsInfo ) => Object . assign ( new BattlegroundsInfo ( ) , { rating : battlegroundsInfo . Rating , game : battlegroundsInfo . Game , } as BattlegroundsInfo ) , 5 , 2000 ) ; } }