navigo.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #include "../calypso_util.h"
  2. #include "../cards/intercode.h"
  3. #include "navigo_i.h"
  4. #include <datetime.h>
  5. #include <stdbool.h>
  6. #include <furi.h>
  7. #ifndef NAVIGO_H
  8. #define NAVIGO_H
  9. const char* get_navigo_type(int type);
  10. const char* get_navigo_station(int station_group_id, int station_id, int service_provider);
  11. const char* get_navigo_sncf_train_line(int station_group_id);
  12. const char* get_navigo_sncf_station(int station_group_id, int station_id);
  13. const char* get_navigo_tram_line(int route_number);
  14. void show_navigo_event_info(
  15. NavigoCardEvent* event,
  16. NavigoCardContract* contracts,
  17. FuriString* parsed_data);
  18. void show_navigo_contract_info(NavigoCardContract* contract, FuriString* parsed_data);
  19. void show_navigo_environment_info(NavigoCardEnv* environment, FuriString* parsed_data);
  20. typedef enum {
  21. NAVIGO_EASY = 0,
  22. NAVIGO_DECOUVERTE = 1,
  23. NAVIGO_STANDARD = 2,
  24. NAVIGO_INTEGRAL = 6,
  25. IMAGINE_R = 14
  26. } NAVIGO_CARD_STATUS;
  27. typedef enum {
  28. NAVIGO_PROVIDER_SNCF = 2,
  29. NAVIGO_PROVIDER_RATP = 3,
  30. NAVIGO_PROVIDER_IDFM = 4,
  31. NAVIGO_PROVIDER_ORA = 8,
  32. NAVIGO_PROVIDER_VEOLIA_CSO = 115,
  33. NAVIGO_PROVIDER_VEOLIA_RBUS = 116,
  34. NAVIGO_PROVIDER_PHEBUS = 156,
  35. NAVIGO_PROVIDER_RATP_VEOLIA_SERVICE = 175
  36. } NAVIGO_SERVICE_PROVIDER;
  37. #endif // NAVIGO_H