Parking Garage Control System
ESP32 Parking Garage – ESP-IDF/FreeRTOS
Loading...
Searching...
No Matches
Ticket.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
8
struct
Ticket
{
9
uint32_t
id
;
10
uint64_t
entryTimestamp
;
11
uint64_t
paymentTimestamp
;
// 0 if not paid
12
bool
isPaid
;
13
bool
isUsed
;
14
15
Ticket
()
16
:
id
(0)
17
,
entryTimestamp
(0)
18
,
paymentTimestamp
(0)
19
,
isPaid
(false)
20
,
isUsed
(false) {}
21
22
Ticket
(uint32_t ticketId, uint64_t entry)
23
:
id
(ticketId)
24
,
entryTimestamp
(entry)
25
,
paymentTimestamp
(0)
26
,
isPaid
(false)
27
,
isUsed
(false) {}
28
};
Ticket
Parking ticket structure.
Definition
Ticket.h:8
Ticket::isPaid
bool isPaid
Definition
Ticket.h:12
Ticket::isUsed
bool isUsed
Definition
Ticket.h:13
Ticket::entryTimestamp
uint64_t entryTimestamp
Definition
Ticket.h:10
Ticket::id
uint32_t id
Definition
Ticket.h:9
Ticket::Ticket
Ticket(uint32_t ticketId, uint64_t entry)
Definition
Ticket.h:22
Ticket::Ticket
Ticket()
Definition
Ticket.h:15
Ticket::paymentTimestamp
uint64_t paymentTimestamp
Definition
Ticket.h:11
Coverage