navigo.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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_metro_station(int station_group_id, int station_id);
  11. const char* get_navigo_train_line(int station_group_id);
  12. const char* get_navigo_train_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. BUS_URBAIN = 1,
  22. BUS_INTERURBAIN = 2,
  23. METRO = 3,
  24. TRAM = 4,
  25. TRAIN = 5,
  26. PARKING = 8
  27. } NAVIGO_TRANSPORT_TYPE;
  28. typedef enum {
  29. NAVIGO_EASY = 0,
  30. NAVIGO_DECOUVERTE = 1,
  31. NAVIGO_STANDARD = 2,
  32. NAVIGO_INTEGRAL = 6,
  33. IMAGINE_R = 14
  34. } NAVIGO_CARD_STATUS;
  35. #endif // NAVIGO_H