Discord Social SDK
|
Public Member Functions | |
ActivityTimestamps (ActivityTimestamps &&other) noexcept | |
Move constructor for ActivityTimestamps. | |
ActivityTimestamps & | operator= (ActivityTimestamps &&other) noexcept |
Move assignment operator for ActivityTimestamps. | |
operator bool () const | |
Returns true if the instance contains a valid object. | |
ActivityTimestamps (const ActivityTimestamps &arg0) | |
Copy constructor for ActivityTimestamps. | |
ActivityTimestamps & | operator= (const ActivityTimestamps &arg0) |
Copy assignment operator for ActivityTimestamps. | |
uint64_t | Start () const |
The time the activity started, in milliseconds since Unix epoch. | |
void | SetStart (uint64_t Start) |
Setter for ActivityTimestamps::Start. | |
uint64_t | End () const |
The time the activity will end at, in milliseconds since Unix epoch. | |
void | SetEnd (uint64_t End) |
Setter for ActivityTimestamps::End. | |
Static Public Attributes | |
static const ActivityTimestamps | nullobj |
Uninitialized instance of ActivityTimestamps. | |
|
noexcept |
Move constructor for ActivityTimestamps.
discordpp::ActivityTimestamps::ActivityTimestamps | ( | const ActivityTimestamps & | arg0 | ) |
Copy constructor for ActivityTimestamps.
uint64_t discordpp::ActivityTimestamps::End | ( | ) | const |
The time the activity will end at, in milliseconds since Unix epoch.
The SDK will try to convert seconds to milliseconds if a small-ish value is passed in. If specified, the Discord client will render a countdown timer showing how long until the activity ends.
|
inline |
Returns true if the instance contains a valid object.
|
noexcept |
Move assignment operator for ActivityTimestamps.
ActivityTimestamps & discordpp::ActivityTimestamps::operator= | ( | const ActivityTimestamps & | arg0 | ) |
Copy assignment operator for ActivityTimestamps.
void discordpp::ActivityTimestamps::SetEnd | ( | uint64_t | End | ) |
Setter for ActivityTimestamps::End.
void discordpp::ActivityTimestamps::SetStart | ( | uint64_t | Start | ) |
Setter for ActivityTimestamps::Start.
uint64_t discordpp::ActivityTimestamps::Start | ( | ) | const |
The time the activity started, in milliseconds since Unix epoch.
The SDK will try to convert seconds to milliseconds if a small-ish value is passed in. If specified, the Discord client will render a count up timer showing how long the user has been playing this activity.
|
static |
Uninitialized instance of ActivityTimestamps.