-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatamodel.h
38 lines (34 loc) · 1.01 KB
/
datamodel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef datamodel_h
#define datamodel_h
typedef struct {
char route[17];
boolean route_direction; //true = inbound, false = outbound
char prediction_time[3][3]; // one prediction time, it's only inbound or outbound, max 3 times per route
// boolean attempt_connect;
long last_attempt; // one attempt time, one refresh time
long last_refreshed;
} prediction;
#endif
// should break into more generic struct that holds only one direction/time, not both inbound and outbound
//typedef struct {
// char route[12];
// char route_direction_in[8];
// char route_direction_out[8];
//// String stop_description;
//
//// int in_stop_ID;
//// time_t in_last_update;
// char prediction_time_in[3][2];
// char prediction_time_out[3][2];
//// String in_prediction_URL;
// boolean attempt_connect;
//// int out_stop_ID;
//// time_t out_last_update;
//// String out_prediction_URL;
// long last_attempt_in;
// long last_attempt_out;
// long last_refreshed_in;
// long last_refreshed_out;
//} prediction;
//
//#endif