import { ScreenName } from '@ulangi/ulangi-common/enums' ; import { boundClass } from 'autobind-decorator' ; import { SecondaryScreenStyle } from '../../styles/SecondaryScreenStyle' ; import { NavigatorDelegate } from '../navigator/NavigatorDelegate' ; import { HeatMapDelegate } from './HeatMapDelegate' ; @ boundClass export class HeatMapScreenDelegate { private heatMapDelegate : HeatMapDelegate ; private navigatorDelegate : NavigatorDelegate ; public constructor ( heatMapDelegate , navigatorDelegate ) { this . heatMapDelegate = heatMapDelegate ; this . navigatorDelegate = navigatorDelegate ; } public getHeatMapData ( ) { this . heatMapDelegate . getHeatMapData ( ) ; } public showHeatMapDataPoint ( date , value ) { this . navigatorDelegate . showLightBox ( ScreenName . HEAT_MAP_DATA_POINT_SCREEN , { date , value , } , SecondaryScreenStyle . LIGHT_BOX_SCREEN_STYLES ) ; } public switchLayout ( ) { this . heatMapDelegate . switchLayout ( ) ; } }