25 lines
540 B
TypeScript
25 lines
540 B
TypeScript
|
import {Injectable} from '@angular/core';
|
||
|
import {ConfigService} from "./config.service";
|
||
|
import {HttpClient} from "@angular/common/http";
|
||
|
import {environment} from "../../environments/environment";
|
||
|
|
||
|
class JsonResponse {
|
||
|
message: string;
|
||
|
data: string;
|
||
|
}
|
||
|
|
||
|
@Injectable({
|
||
|
providedIn: 'root'
|
||
|
})
|
||
|
export class PollService {
|
||
|
|
||
|
private baseHref: string = environment.baseApiHref;
|
||
|
|
||
|
constructor(private configService: ConfigService,
|
||
|
private document: Document,
|
||
|
private http: HttpClient) {
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|