opus_i.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #include <datetime.h>
  2. #include <stdbool.h>
  3. #ifndef OPUS_I_H
  4. #define OPUS_I_H
  5. typedef struct {
  6. int service_provider;
  7. int result;
  8. int route_number;
  9. int route_direction;
  10. int location_id;
  11. int used_contract;
  12. bool simulation;
  13. DateTime date;
  14. DateTime first_stamp_date;
  15. } OpusCardEvent;
  16. typedef struct {
  17. int app_version;
  18. int country_num;
  19. int network_num;
  20. int issuer_id;
  21. bool card_status;
  22. bool card_utilisation;
  23. DateTime end_dt;
  24. } OpusCardEnv;
  25. typedef struct {
  26. int number;
  27. DateTime date;
  28. } OpusCardHolderProfile;
  29. typedef struct {
  30. DateTime birth_date;
  31. OpusCardHolderProfile profiles[4];
  32. int language;
  33. } OpusCardHolder;
  34. typedef struct {
  35. int provider;
  36. int tariff;
  37. DateTime start_date;
  38. DateTime end_date;
  39. DateTime sale_date;
  40. int status;
  41. bool present;
  42. } OpusCardContract;
  43. typedef struct {
  44. OpusCardEnv environment;
  45. OpusCardHolder holder;
  46. OpusCardContract contracts[4];
  47. OpusCardEvent events[3];
  48. } OpusCardData;
  49. #endif // OPUS_I_H