opus_i.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. int sale_agent;
  40. DateTime sale_date;
  41. bool inhibition;
  42. bool used;
  43. bool present;
  44. } OpusCardContract;
  45. typedef struct {
  46. OpusCardEnv environment;
  47. OpusCardHolder holder;
  48. OpusCardContract contracts[4];
  49. OpusCardEvent events[3];
  50. } OpusCardData;
  51. #endif // OPUS_I_H