import { Injectable } from '@angular/core' ; import { TimerEvent , OpenBladeInfo , DataMessage , PinPartInfo , LogEntryLevel , NotificationStartedInfo , TokenType , } from '../../shared/models/portal' ; import { Subject } from 'rxjs/Subject' ; import { SpecCostQueryInput , SpecCostQueryResult } from '../../site/spec-picker/price-spec-manager/billing-models' ; import { Observable } from 'rxjs/Observable' ; import { Subscription } from '../../shared/models/subscription' ; @ Injectable ( ) export class MockPortalService { public operationStream = new Subject < DataMessage < any > > ( ) ; constructor ( ) { } getStartupInfo ( ) { } sendTimerEvent ( evt ) { } openBladeDeprecated ( bladeInfo , source ) { } openBlade ( bladeInfo , source ) { } openCollectorBlade ( resourceId , name , source , getAppSettingCallback ) { } openCollectorBladeWithInputs ( resourceId , obj , source , getAppSettingCallback , bladeName ? ) { } getAdToken ( tokenType ) { } getSpecCosts ( query ) { return null ; } getSubscription ( subscriptionId ) { return null ; } closeBlades ( ) { } updateBladeInfo ( title , subtitle ) { } pinPart ( pinPartInfo ) { } startNotification ( title , description ) { return Observable . of ( { id : 'notid' , } ) ; } stopNotification ( id , success , description ) { } logAction ( subcomponent , action , data ? ) { } setDirtyState ( dirty ) { } updateDirtyState ( dirty , message ? ) { } logMessage ( level , message , ... restArgs ) { } returnPcv3Results < T > ( results ) { } }