import { ReconnectDisplay } from './ReconnectDisplay' ; export class UserSpecifiedDisplay implements ReconnectDisplay { static readonly ShowClassName = 'components-reconnect-show' ; static readonly HideClassName = 'components-reconnect-hide' ; static readonly FailedClassName = 'components-reconnect-failed' ; static readonly RejectedClassName = 'components-reconnect-rejected' ; constructor ( private dialog ) { } show ( ) { this . removeClasses ( ) ; this . dialog . classList . add ( UserSpecifiedDisplay . ShowClassName ) ; } hide ( ) { this . removeClasses ( ) ; this . dialog . classList . add ( UserSpecifiedDisplay . HideClassName ) ; } failed ( ) { this . removeClasses ( ) ; this . dialog . classList . add ( UserSpecifiedDisplay . FailedClassName ) ; } rejected ( ) { this . removeClasses ( ) ; this . dialog . classList . add ( UserSpecifiedDisplay . RejectedClassName ) ; } private removeClasses ( ) { this . dialog . classList . remove ( UserSpecifiedDisplay . ShowClassName , UserSpecifiedDisplay . HideClassName , UserSpecifiedDisplay . FailedClassName , UserSpecifiedDisplay . RejectedClassName ) ; } }