attic/a_n_files_fetch library
Properties
- timingInHoursBeforeRefresh ↔ int
-
getter/setter pair
Functions
-
checkPrefs(
) → Future< bool> -
getListOfAmendements(
{required Directory mainDirectory}) → Future< List< AmendementFromJson> > - Get the Amendements JSON files in designated directory and convert to AmendementFromJson:
-
getListOfDeputes(
{String pathToDeputes = "https://data.assemblee-nationale.fr/static/openData/repository/16/amo/deputes_actifs_csv_opendata/liste_deputes_excel.csv", required Directory mainDirectory, bool forceRefresh = false}) → Future< List< DeputesFromCsv> > - If needed, download the CSV Excel-format from National Assembly open data. In any case, convert downloaded data :
-
getListOfDossiersLegislatifs(
{required Directory mainDirectory}) → Future< List< DossierLegislatifFromJson> > - Get the Dossiers Legislatifs JSON files in designated directory and convert to DossierLegislatifFromJson:
-
getListOfProjetsLois(
{required Directory mainDirectory}) → Future< List< ProjetLoiFromJson> > - Get the Projets Lois JSON files in designated directory and convert to ProjetLoiFromJson:
-
getListOfVotes(
{required Directory mainDirectory}) → Future< List< ScrutinFromJson> > - Get the Scrutin JSON files in designated directory and convert to ScrutinFromJson:
-
getUpdatedDatasFromAssembly(
{String pathToDossiers = "https://data.assemblee-nationale.fr/static/openData/repository/16/loi/dossiers_legislatifs/Dossiers_Legislatifs.json.zip", String pathToVotes = "https://data.assemblee-nationale.fr/static/openData/repository/16/loi/scrutins/Scrutins.json.zip", String pathToAmendements = "https://data.assemblee-nationale.fr/static/openData/repository/16/loi/amendements_div_legis/Amendements.json.zip", required Directory destinationDirectory, bool forceRefresh = false}) → Future< bool> - Download the ZIP archives from National Assembly open data and extract in designated directory :
-
updatePrefs(
) → void