-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathLogSessionData.hpp
46 lines (37 loc) · 1.04 KB
/
LogSessionData.hpp
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
39
40
41
42
43
44
45
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//
#ifndef LOGSESSIONDATA_HPP
#define LOGSESSIONDATA_HPP
#include "ctmacros.hpp"
#include <string>
#include <cstdint>
namespace MAT_NS_BEGIN
{
class LogSessionData
{
public:
LogSessionData(
uint64_t sessionFirstTimeLaunch,
std::string sessionSDKUid)
:
m_sessionFirstTimeLaunch(sessionFirstTimeLaunch),
m_sessionSDKUid(sessionSDKUid)
{
}
/// <summary>
/// Gets the time that this session began.
/// </summary>
/// <returns>A 64-bit integer that contains the time.</returns>
uint64_t getSessionFirstTime() const;
/// <summary>
/// Gets the SDK unique identifier.
/// </summary>
std::string getSessionSDKUid() const;
protected:
const uint64_t m_sessionFirstTimeLaunch{0ull};
const std::string m_sessionSDKUid;
};
} MAT_NS_END
#endif