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

Detailed Description

Struct that encapsulates the challenge part of the code verification flow.

Public Member Functions

 AuthorizationCodeChallenge (AuthorizationCodeChallenge &&other) noexcept
 Move constructor for AuthorizationCodeChallenge.
 
AuthorizationCodeChallengeoperator= (AuthorizationCodeChallenge &&other) noexcept
 Move assignment operator for AuthorizationCodeChallenge.
 
 operator bool () const
 Returns true if the instance contains a valid object.
 
 AuthorizationCodeChallenge (const AuthorizationCodeChallenge &arg0)
 Copy constructor for AuthorizationCodeChallenge.
 
AuthorizationCodeChallengeoperator= (const AuthorizationCodeChallenge &arg0)
 Copy assignment operator for AuthorizationCodeChallenge.
 
discordpp::AuthenticationCodeChallengeMethod Method () const
 The method used to generate the challenge. The only method used by the SDK is sha256.
 
void SetMethod (discordpp::AuthenticationCodeChallengeMethod Method)
 Setter for AuthorizationCodeChallenge::Method.
 
std::string Challenge () const
 The challenge value.
 
void SetChallenge (std::string Challenge)
 Setter for AuthorizationCodeChallenge::Challenge.
 

Static Public Attributes

static const AuthorizationCodeChallenge nullobj
 Uninitialized instance of AuthorizationCodeChallenge.
 

Constructor & Destructor Documentation

◆ AuthorizationCodeChallenge() [1/2]

discordpp::AuthorizationCodeChallenge::AuthorizationCodeChallenge ( AuthorizationCodeChallenge && other)
noexcept

Move constructor for AuthorizationCodeChallenge.

◆ AuthorizationCodeChallenge() [2/2]

discordpp::AuthorizationCodeChallenge::AuthorizationCodeChallenge ( const AuthorizationCodeChallenge & arg0)

Copy constructor for AuthorizationCodeChallenge.

Member Function Documentation

◆ Challenge()

std::string discordpp::AuthorizationCodeChallenge::Challenge ( ) const

The challenge value.

◆ Method()

discordpp::AuthenticationCodeChallengeMethod discordpp::AuthorizationCodeChallenge::Method ( ) const

The method used to generate the challenge. The only method used by the SDK is sha256.

◆ operator bool()

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

Returns true if the instance contains a valid object.

◆ operator=() [1/2]

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

Move assignment operator for AuthorizationCodeChallenge.

◆ operator=() [2/2]

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

Copy assignment operator for AuthorizationCodeChallenge.

◆ SetChallenge()

void discordpp::AuthorizationCodeChallenge::SetChallenge ( std::string Challenge)

◆ SetMethod()

void discordpp::AuthorizationCodeChallenge::SetMethod ( discordpp::AuthenticationCodeChallengeMethod Method)

Member Data Documentation

◆ nullobj

const AuthorizationCodeChallenge discordpp::AuthorizationCodeChallenge::nullobj
static

Uninitialized instance of AuthorizationCodeChallenge.