import { Injectable } from '@angular/core' ; import { SafeHtml } from '@angular/platform-browser' ; export abstract class ThyAvatarService { ignoreAvatarSrcPaths = [ `default.png` ] ; deprecated abstract avatarSrcTransform ( src , size ) ; abstract srcTransform ( src , size ) ; abstract nameTransform ( name ) ; } @ Injectable ( ) export class ThyDefaultAvatarService extends ThyAvatarService { deprecated avatarSrcTransform ( src , size ) { return src ; } srcTransform ( src , size ) { return src ; } nameTransform ( name ) { return name ; } }