Discord Social SDK
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
discordpp::ActivityTimestamps Class Reference

Detailed Description

See also
Activity

Public Member Functions

 ActivityTimestamps (ActivityTimestamps &&other) noexcept
 Move constructor for ActivityTimestamps.
 
ActivityTimestampsoperator= (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.
 
ActivityTimestampsoperator= (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.
 

Constructor & Destructor Documentation

◆ ActivityTimestamps() [1/2]

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

Move constructor for ActivityTimestamps.

◆ ActivityTimestamps() [2/2]

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

Copy constructor for ActivityTimestamps.

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.

◆ operator bool()

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

Returns true if the instance contains a valid object.

◆ operator=() [1/2]

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

Move assignment operator for ActivityTimestamps.

◆ operator=() [2/2]

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

Copy assignment operator for ActivityTimestamps.

◆ SetEnd()

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

◆ SetStart()

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

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

Member Data Documentation

◆ nullobj

const ActivityTimestamps discordpp::ActivityTimestamps::nullobj
static

Uninitialized instance of ActivityTimestamps.