mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
With this change all components, which used data services before, now use abstract classes of service interfaces, mock services extend interface services, CoreModule contains code to inject a needed implementation of some service.
12 lines
270 B
TypeScript
12 lines
270 B
TypeScript
import { Observable } from 'rxjs';
|
|
|
|
export interface UserActive {
|
|
date: string;
|
|
pagesVisitCount: number;
|
|
deltaUp: boolean;
|
|
newVisits: number;
|
|
}
|
|
|
|
export abstract class UserActivityData {
|
|
abstract getUserActivityData(period: string): Observable<UserActive[]>;
|
|
}
|