OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_CRYPTAUTH_BLE_EID_DATA_WITH_TIMESTAMP_H_ | |
6 #define COMPONENTS_CRYPTAUTH_BLE_EID_DATA_WITH_TIMESTAMP_H_ | |
7 | |
8 #include <string> | |
9 | |
10 namespace cryptauth { | |
11 | |
12 // Stores EID-related data and timestamps at which time this data becomes | |
13 // active or inactive. | |
14 struct EidDataWithTimestamp { | |
Kyle Horimoto
2017/04/28 22:19:16
Can you change the name back to DataWithTimestamp?
Tim Song
2017/04/29 01:07:50
Done.
| |
15 EidDataWithTimestamp(const std::string& data, | |
16 const int64_t start_timestamp_ms, | |
17 const int64_t end_timestamp_ms); | |
18 EidDataWithTimestamp(const EidDataWithTimestamp& other); | |
19 | |
20 bool ContainsTime(const int64_t timestamp_ms) const; | |
21 std::string DataInHex() const; | |
22 | |
23 bool operator==(const EidDataWithTimestamp& other) const; | |
24 | |
25 const std::string data; | |
26 const int64_t start_timestamp_ms; | |
27 const int64_t end_timestamp_ms; | |
28 }; | |
29 | |
30 } // namespace | |
31 | |
32 #endif // COMPONENTS_CRYPTAUTH_BLE_EID_DATA_WITH_TIMESTAMP_H_ | |
OLD | NEW |