import { ObservableQuickTutorialScreen } from '@ulangi/ulangi-observable' ; import { boundClass } from 'autobind-decorator' ; import { NavigatorDelegate } from '../navigator/NavigatorDelegate' ; @ boundClass export class QuickTutorialScreenDelegate { private observableScreen : ObservableQuickTutorialScreen ; private navigatorDelegate : NavigatorDelegate ; public constructor ( observableScreen , navigatorDelegate ) { this . observableScreen = observableScreen ; this . navigatorDelegate = navigatorDelegate ; } public setSlideIndex ( index ) { this . observableScreen . currentIndex = index ; } public back ( ) { this . navigatorDelegate . dismissScreen ( ) ; } }