forked from PnX-SI/gn_module_monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge site_group.service.ts delete site.service.ts add interfaces re arrange code from branch front-site-interface Reviewed-by: andriacap [Refs ticket]: #4
- Loading branch information
Showing
15 changed files
with
436 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import { ISite, JsonData } from "../interfaces/geom"; | ||
import { GeoJSON } from "geojson"; | ||
|
||
export class MonitoringSite implements ISite { | ||
altitude_max: number; | ||
altitude_min: number; | ||
base_site_code: string; | ||
base_site_description?: string; | ||
base_site_name: string; | ||
data: JsonData; | ||
first_use_date: string; | ||
geometry: GeoJSON.FeatureCollection; | ||
id_base_site: number; | ||
id_nomenclature_type_site?: number; | ||
last_visit?: Date; | ||
meta_create_date: Date; | ||
meta_update_date: Date; | ||
nb_visits: number; | ||
uuid_base_site: string; | ||
|
||
constructor( | ||
altitude_max: number, | ||
altitude_min: number, | ||
base_site_code: string, | ||
base_site_description: string, | ||
base_site_name: string, | ||
data: JsonData, | ||
geometry: GeoJSON.FeatureCollection, | ||
first_use_date: string, | ||
id_base_site: number, | ||
id_nomenclature_type_site: number, | ||
last_visit: Date, | ||
meta_create_date: Date, | ||
meta_update_date: Date, | ||
nb_visits: number, | ||
uuid_base_site: string | ||
) { | ||
this.altitude_max = altitude_max; | ||
this.altitude_min = altitude_min; | ||
this.base_site_code = base_site_code; | ||
this.base_site_description = base_site_description; | ||
this.base_site_name = base_site_name; | ||
this.data = data; | ||
this.first_use_date = first_use_date; | ||
this.geometry = geometry; | ||
this.id_base_site = id_base_site; | ||
this.id_nomenclature_type_site = id_nomenclature_type_site; | ||
this.last_visit = last_visit; | ||
this.meta_create_date = meta_create_date; | ||
this.meta_update_date = meta_update_date; | ||
this.nb_visits = nb_visits; | ||
this.uuid_base_site = uuid_base_site; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { ISitesGroup, JsonData } from "../interfaces/geom"; | ||
import { GeoJSON } from "geojson"; | ||
|
||
export class MonitoringSitesGroup implements ISitesGroup { | ||
id_sites_group: number; | ||
sites_group_name: string; | ||
sites_group_code: string; | ||
sites_group_description: string; | ||
geometry: GeoJSON.FeatureCollection; | ||
data: JsonData; | ||
nb_sites: number; | ||
nb_visits: number; | ||
uuid_sites_group: string; //FIXME: see if OK | ||
|
||
constructor( | ||
id_sites_group: number, | ||
sites_group_name: string, | ||
sites_group_code: string, | ||
sites_group_description: string, | ||
geometry: GeoJSON.FeatureCollection, | ||
data: JsonData, | ||
nb_sites: number, | ||
nb_visits: number, | ||
uuid_sites_group: string = "" //FIXME: see if OK | ||
) { | ||
this.id_sites_group = id_sites_group; | ||
this.sites_group_name = sites_group_name; | ||
this.sites_group_code = sites_group_code; | ||
this.sites_group_description = sites_group_description; | ||
this.geometry = geometry; | ||
this.data = data; | ||
this.nb_sites = nb_sites; | ||
this.nb_visits = nb_visits; | ||
this.uuid_sites_group = uuid_sites_group; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.