import Profile from "./Profile" ; import Layout from "./Layout" ; export class PreviewPicture { public readonly bgPicture : string ; private readonly layout ? : Layout ; private readonly profile ? : Profile ; constructor ( bgPicture , layout ? , profile ? ) { this . layout = layout ; this . profile = profile ; this . bgPicture = bgPicture ; } public forLayout ( l ) { if ( this . layout ) { return l . id === this . layout . id ; } else { return false ; } } public forProfile ( p ) { if ( this . profile ) { return p . id === this . profile . id ; } else { return false ; } } }