Rise
The Vieneo Province
Loading...
Searching...
No Matches
discordpp::ActivityTimestamps Class Reference

#include <discordpp.h>

Collaboration diagram for discordpp::ActivityTimestamps:
[legend]

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.
 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.

Detailed Description

See also
Activity

Definition at line 914 of file discordpp.h.

Constructor & Destructor Documentation

◆ ActivityTimestamps() [1/3]

discordpp::ActivityTimestamps::ActivityTimestamps ( ActivityTimestamps && other)
noexcept

Move constructor for ActivityTimestamps.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ActivityTimestamps() [2/3]

discordpp::ActivityTimestamps::ActivityTimestamps ( const ActivityTimestamps & arg0)

Copy constructor for ActivityTimestamps.

Here is the call graph for this function:

◆ ActivityTimestamps() [3/3]

discordpp::ActivityTimestamps::ActivityTimestamps ( )
explicit

Member Function Documentation

◆ End()

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.

Here is the caller graph for this function:

◆ operator bool()

discordpp::ActivityTimestamps::operator bool ( ) const
inline

Returns true if the instance contains a valid object.

Definition at line 935 of file discordpp.h.

◆ operator=() [1/2]

ActivityTimestamps & discordpp::ActivityTimestamps::operator= ( ActivityTimestamps && other)
noexcept

Move assignment operator for ActivityTimestamps.

Here is the call graph for this function:

◆ operator=() [2/2]

ActivityTimestamps & discordpp::ActivityTimestamps::operator= ( const ActivityTimestamps & arg0)

Copy assignment operator for ActivityTimestamps.

Here is the call graph for this function:

◆ SetEnd()

void discordpp::ActivityTimestamps::SetEnd ( uint64_t End)

Setter for ActivityTimestamps::End.

Here is the call graph for this function:

◆ SetStart()

void discordpp::ActivityTimestamps::SetStart ( uint64_t Start)

Setter for ActivityTimestamps::Start.

Here is the call graph for this function:

◆ 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.

Here is the caller graph for this function:

Member Data Documentation

◆ nullobj

const ActivityTimestamps discordpp::ActivityTimestamps::nullobj
static

Uninitialized instance of ActivityTimestamps.

Definition at line 933 of file discordpp.h.


The documentation for this class was generated from the following file: