Advertisement
Guest User

dashboard.ts

a guest
Mar 20th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. import { environment } from './../../../environments/environment';
  2. import { CommunicatorService } from './communicator.service';
  3. import { Injectable, Inject } from '@angular/core';
  4.  
  5. @Injectable()
  6. export class DashboardService {
  7.  
  8. constructor(private comm: CommunicatorService) { }
  9.  
  10.  
  11. getEnrolleeStats() {
  12. let url = environment.apiV1EndPoint + environment.getEnrolleeStatsUrl;
  13. url = url.replace(':hmoId', this.comm.getEffectiveHmoId());
  14. return this.comm.get( url);
  15.  
  16. }
  17.  
  18. getAuthRequestStats() {
  19. let url = environment.apiV1EndPoint + environment.getAuthRequestStatsUrl;
  20. url = url.replace(':hmoId', this.comm.getEffectiveHmoId());
  21. return this.comm.get( url);
  22. }
  23.  
  24. getSubmittedClaimsStats() {
  25. let url = environment.apiV1EndPoint + environment.getSubmittedClaimsStatsUrl;
  26. url = url.replace(':hmoId', this.comm.getEffectiveHmoId());
  27. return this.comm.get(url);
  28. }
  29.  
  30. getApprovedClaimsStats() {
  31. let url = environment.apiV1EndPoint + environment.getApprovedClaimsStatsUrl;
  32. url = url.replace(':hmoId', this.comm.getEffectiveHmoId());
  33. return this.comm.get( url);
  34. }
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement