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

Arguments to the Client::GetTokenFromDevice function. More...

#include <discordpp.h>

Collaboration diagram for discordpp::DeviceAuthorizationArgs:
[legend]

Public Member Functions

 DeviceAuthorizationArgs (DeviceAuthorizationArgs &&other) noexcept
 Move constructor for DeviceAuthorizationArgs.
DeviceAuthorizationArgs & operator= (DeviceAuthorizationArgs &&other) noexcept
 Move assignment operator for DeviceAuthorizationArgs.
 operator bool () const
 Returns true if the instance contains a valid object.
 DeviceAuthorizationArgs (const DeviceAuthorizationArgs &arg0)
 Copy constructor for DeviceAuthorizationArgs.
DeviceAuthorizationArgs & operator= (const DeviceAuthorizationArgs &arg0)
 Copy assignment operator for DeviceAuthorizationArgs.
 DeviceAuthorizationArgs ()
uint64_t ClientId () const
 Optional. The Discord application ID for your game. Defaults to the value set by Client::SetApplicationId.
void SetClientId (uint64_t ClientId)
 Setter for DeviceAuthorizationArgs::ClientId.
std::string Scopes () const
 Scopes is a space separated string of the oauth scopes your game is requesting.
void SetScopes (std::string Scopes)
 Setter for DeviceAuthorizationArgs::Scopes.

Static Public Attributes

static const DeviceAuthorizationArgs nullobj
 Uninitialized instance of DeviceAuthorizationArgs.

Detailed Description

Arguments to the Client::GetTokenFromDevice function.

Definition at line 1746 of file discordpp.h.

Constructor & Destructor Documentation

◆ DeviceAuthorizationArgs() [1/3]

discordpp::DeviceAuthorizationArgs::DeviceAuthorizationArgs ( DeviceAuthorizationArgs && other)
noexcept

Move constructor for DeviceAuthorizationArgs.

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

◆ DeviceAuthorizationArgs() [2/3]

discordpp::DeviceAuthorizationArgs::DeviceAuthorizationArgs ( const DeviceAuthorizationArgs & arg0)

Copy constructor for DeviceAuthorizationArgs.

Here is the call graph for this function:

◆ DeviceAuthorizationArgs() [3/3]

discordpp::DeviceAuthorizationArgs::DeviceAuthorizationArgs ( )
explicit

Member Function Documentation

◆ ClientId()

uint64_t discordpp::DeviceAuthorizationArgs::ClientId ( ) const

Optional. The Discord application ID for your game. Defaults to the value set by Client::SetApplicationId.

Here is the caller graph for this function:

◆ operator bool()

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

Returns true if the instance contains a valid object.

Definition at line 1768 of file discordpp.h.

◆ operator=() [1/2]

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

Copy assignment operator for DeviceAuthorizationArgs.

Here is the call graph for this function:

◆ operator=() [2/2]

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

Move assignment operator for DeviceAuthorizationArgs.

Here is the call graph for this function:

◆ Scopes()

std::string discordpp::DeviceAuthorizationArgs::Scopes ( ) const

Scopes is a space separated string of the oauth scopes your game is requesting.

Most games should just pass in Client::GetDefaultCommunicationScopes or Client::GetDefaultPresenceScopes which will include these scopes, respectively: openid sdk.social_layer or openid sdk.social_layer_presence

sdk.social_layer and sdk.social_layer_presence automatically expand to include all the necessary scopes for the integration.

You can pass in additional scopes if you need to, but as a general rule you should only request the scopes you actually need, and the user will need to grant access to those additional scopes as well.

Here is the caller graph for this function:

◆ SetClientId()

void discordpp::DeviceAuthorizationArgs::SetClientId ( uint64_t ClientId)

Setter for DeviceAuthorizationArgs::ClientId.

Here is the call graph for this function:

◆ SetScopes()

void discordpp::DeviceAuthorizationArgs::SetScopes ( std::string Scopes)

Setter for DeviceAuthorizationArgs::Scopes.

Here is the call graph for this function:

Member Data Documentation

◆ nullobj

const DeviceAuthorizationArgs discordpp::DeviceAuthorizationArgs::nullobj
static

Uninitialized instance of DeviceAuthorizationArgs.

Definition at line 1766 of file discordpp.h.


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