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
8struct Ticket {
9 uint32_t id;
11 uint64_t paymentTimestamp; // 0 if not paid
12 bool isPaid;
13 bool isUsed;
14
16 : id(0)
19 , isPaid(false)
20 , isUsed(false) {}
21
22 Ticket(uint32_t ticketId, uint64_t entry)
23 : id(ticketId)
24 , entryTimestamp(entry)
26 , isPaid(false)
27 , isUsed(false) {}
28};
Parking ticket structure.
Definition Ticket.h:8
bool isPaid
Definition Ticket.h:12
bool isUsed
Definition Ticket.h:13
uint64_t entryTimestamp
Definition Ticket.h:10
uint32_t id
Definition Ticket.h:9
Ticket(uint32_t ticketId, uint64_t entry)
Definition Ticket.h:22
Ticket()
Definition Ticket.h:15
uint64_t paymentTimestamp
Definition Ticket.h:11
Coverage