D++ (DPP)
C++ Discord API Bot Library
dpp::activity Class Reference

An activity is a representation of what a user is doing. It might be a game, or a website, or a movie. Whatever. More...

#include <presence.h>

+ Collaboration diagram for dpp::activity:

Public Member Functions

 activity ()=default
 
 activity (const activity_type typ, const std::string &nam, const std::string &stat, const std::string &url_)
 Construct a new activity. More...
 

Public Attributes

std::string name
 
std::string state
 
std::string url
 
activity_type type
 
time_t created_at
 
time_t start
 
time_t end
 
snowflake application_id
 
uint8_t flags
 

Detailed Description

An activity is a representation of what a user is doing. It might be a game, or a website, or a movie. Whatever.

Constructor & Destructor Documentation

◆ activity() [1/2]

dpp::activity::activity ( )
default

◆ activity() [2/2]

dpp::activity::activity ( const activity_type  typ,
const std::string &  nam,
const std::string &  stat,
const std::string &  url_ 
)

Construct a new activity.

Parameters
typactivity type
namName of the activity
statState of the activity
url_url of the activity, only works for certain sites, such as YouTube

Member Data Documentation

◆ application_id

snowflake dpp::activity::application_id

Creating application (e.g. a linked account on the user's client)

◆ created_at

time_t dpp::activity::created_at

Time activity was created

◆ end

time_t dpp::activity::end

End time, e.g. for songs on spotify

◆ flags

uint8_t dpp::activity::flags

Flags bitmask from activity_flags

◆ name

std::string dpp::activity::name

Name of ativity e.g. "Fortnite"

◆ start

time_t dpp::activity::start

Start time. e.g. when game was started

◆ state

std::string dpp::activity::state

State of activity. e.g. "Waiting in lobby"

◆ type

activity_type dpp::activity::type

Activity type

◆ url

std::string dpp::activity::url

URL. Only applicable for certain sites such a YouTube Alias: details

D++ Library version 10.0.35D++ Library version 10.0.34D++ Library version 10.0.33D++ Library version 10.0.32D++ Library version 10.0.31D++ Library version 10.0.30D++ Library version 10.0.29D++ Library version 10.0.28D++ Library version 10.0.27D++ Library version 10.0.26D++ Library version 10.0.25D++ Library version 10.0.24D++ Library version 10.0.23D++ Library version 10.0.22D++ Library version 10.0.21D++ Library version 10.0.20D++ Library version 10.0.19D++ Library version 10.0.18D++ Library version 10.0.17D++ Library version 10.0.16D++ Library version 10.0.15D++ Library version 10.0.14D++ Library version 10.0.13D++ Library version 10.0.12D++ Library version 10.0.11D++ Library version 10.0.10D++ Library version 10.0.9D++ Library version 10.0.8D++ Library version 10.0.7D++ Library version 10.0.6D++ Library version 10.0.5D++ Library version 10.0.4D++ Library version 10.0.3D++ Library version 10.0.2D++ Library version 10.0.1D++ Library version 10.0.0D++ Library version 9.0.19D++ Library version 9.0.18D++ Library version 9.0.17D++ Library version 9.0.16D++ Library version 9.0.15D++ Library version 9.0.14D++ Library version 9.0.13D++ Library version 9.0.12D++ Library version 9.0.11D++ Library version 9.0.10D++ Library version 9.0.9D++ Library version 9.0.8D++ Library version 9.0.7D++ Library version 9.0.6D++ Library version 9.0.5D++ Library version 9.0.4D++ Library version 9.0.3D++ Library version 9.0.2D++ Library version 9.0.1D++ Library version 9.0.0D++ Library version 1.0.2D++ Library version 1.0.1D++ Library version 1.0.0