Rise
The Vieneo Province
Loading...
Searching...
No Matches
DiscordActivityPayload.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <string>
5
6namespace RiseDiscord
7{
8 struct Fields
9 {
10 const char* state{};
11 const char* details{};
12 const char* largeImageKey{};
13 const char* largeImageText{};
14 const char* smallImageKey{};
15 const char* smallImageText{};
16 std::int64_t startTimestamp{}; // Unix seconds from the gameplay session.
17 };
18
19 // Own the strings: gameplay buffers can change while an SDK request is pending.
20 struct Activity
21 {
22 std::string state, details;
24 std::uint64_t startMilliseconds{};
25 };
26
27 Activity BuildActivity(const Fields& fields);
28}
Activity BuildActivity(const Fields &fields)