convert appid to abstract class

This commit is contained in:
Kyle Spearrin 2018-04-04 08:22:18 -04:00
parent 167558168c
commit 00bb0fdbdf
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
export interface AppIdService { export abstract class AppIdService {
getAppId(): Promise<string>; getAppId: () => Promise<string>;
getAnonymousAppId(): Promise<string>; getAnonymousAppId: () => Promise<string>;
} }

View File

@ -1,9 +1,9 @@
import { UtilsService } from './utils.service'; import { UtilsService } from './utils.service';
import { AppIdService as AppIdServiceInterface } from '../abstractions/appId.service'; import { AppIdService as AppIdServiceAbstraction } from '../abstractions/appId.service';
import { StorageService } from '../abstractions/storage.service'; import { StorageService } from '../abstractions/storage.service';
export class AppIdService implements AppIdServiceInterface { export class AppIdService implements AppIdServiceAbstraction {
constructor(private storageService: StorageService) { constructor(private storageService: StorageService) {
} }