import { Injectable } from '@angular/core';
import { ApiService } from '../api/api.service';

@Injectable({
  providedIn: 'root'
})
export class AnalyticsService {

  constructor(public api: ApiService) {
  }

  /**
   * Hit the API to track change method clicked event.
   * @returns Observable
   */
  changeMethodClicked() {
    return this.api.read('/User-TrackEvent/changeMethodClicked');
  }
}
