import { Injectable } from "@angular/core";
import { HttpClient } from "@angular/common/http";
import { ApiService } from "../../services/api.service";
import { Timestamp } from "../../interfaces/timestamp";
import { HelpersService } from "../../services/helpers.service";

export interface Peta extends Timestamp {
  length: number;
  id: string;
  map_street_section_id: string;
  map_street_id: string;
  name: string;
  order: number;
  geojson: string;
}

@Injectable({
  providedIn: "root",
})
export class StreetSegmens extends ApiService<Peta> {
  constructor(
    public override http: HttpClient,
    public override helpers: HelpersService
  ) {
    super(http, helpers);
    this.endpoint = "street-segmens";
  }
}
