Twitch SDK (Internal)
oauthtoken.h
Go to the documentation of this file.
1 /********************************************************************************************
2 * Twitch Broadcasting SDK
3 *
4 * This software is supplied under the terms of a license agreement with Twitch Interactive, Inc. and
5 * may not be copied or used except in accordance with the terms of that agreement
6 * Copyright (c) 2012-2016 Twitch Interactive, Inc.
7 *********************************************************************************************/
8 
9 #pragma once
10 
12 
13 
14 namespace ttv
15 {
16  class OAuthToken;
17 }
18 
19 
21 {
22 public:
23  OAuthToken(const std::string& token);
24 
25  std::string GetToken() const { return mToken; }
26 
27  const std::vector<std::string>& GetScopes() const { return mScopes; }
28  void SetScopes(const std::vector<std::string>& scopes) { mScopes = scopes; }
29 
30  bool GetValid() const { return mValid; }
31  void SetValid(bool valid) { mValid = valid; }
32 
33 private:
34  std::string mToken;
35  std::vector<std::string> mScopes;
36  bool mValid;
37 };
const std::vector< std::string > & GetScopes() const
Definition: oauthtoken.h:27
std::vector< std::string > mScopes
Definition: oauthtoken.h:35
Definition: oauthtoken.h:20
std::string GetToken() const
Definition: oauthtoken.h:25
OAuthToken(const std::string &token)
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
void SetScopes(const std::vector< std::string > &scopes)
Definition: oauthtoken.h:28
bool GetValid() const
Definition: oauthtoken.h:30
void SetValid(bool valid)
Definition: oauthtoken.h:31
bool mValid
Definition: oauthtoken.h:36
std::string mToken
Definition: oauthtoken.h:34