import { Component, Inject, OnInit, Injectable } from '@angular/core';
import { HttpErrorHandler, HandleError } from '../../../src/auth/http-error-handler.service';
import { AuthService } from '../../../src/auth/auth.service';
import { HttpClient, HttpParams } from '@angular/common/http';
import { BaseService } from '../../../src/baseclass/BaseService';
import { AppConfig } from '../../../src/AppConfig/AppConfig';
import { RequireInteractiveControl } from '../../../src/interface/Interactive Component/RequireInteractiveControl';

@Injectable()
export class OperatingCentreService extends BaseService<OperatingCentreClass>{
  constructor(
    public authService: AuthService,
    public httpErrorHandler: HttpErrorHandler,
    http: HttpClient, 
    @Inject('BASE_URL') baseUrl: string) {

      super(authService,httpErrorHandler,http,AppConfig.settings.UserManagerSettings.authority,"OperatingCentres","umshared/");
  }
 
  
}

export class OperatingCentreClass implements OperatingCentre,RequireInteractiveControl {
    id: string;
    isLocked: boolean;
    code: string;    
    name: string;
    shortName: string;
    Add1: string;
    Add2: string;
    Add3: string;
  }
