EHS
Loading...
Searching...
No Matches
Twitch.h
Go to the documentation of this file.
1#pragma once
2
3#include "ehs/EHS.h"
4#include "ehs/Str.h"
5#include "ehs/io/socket/SSL.h"
6
7namespace ehs
8{
9 class EHS_LIB_IO Twitch
10 {
11 private:
12 SSL client;
13 Str_8 clientId;
14 Str_8 secret;
15 Str_8 redURI;
16 Array<Str_8> scopes;
17 bool forceVerify;
18 Str_8 token;
19
20 public:
21 virtual ~Twitch();
22
23 Twitch();
24
25 Twitch(const Str_8& clientId, const Str_8& secret, const Str_8& redURI, const Array<Str_8>& scopes, const bool forceVerify);
26
27 bool Authorize();
28
29 Str_8 GetClientId() const;
30
31 Str_8 GetSecret() const;
32
33 Str_8 GetRedURI() const;
34
35 bool IsVerificationForced() const;
36
37 Str_8 GetToken() const;
38 };
39}
Definition Array.h:16
A class for handling the HTTP(S) TCP socket layer.
Definition SSL.h:16
Str_8 GetToken() const
Definition Twitch.cpp:146
bool Authorize()
Definition Twitch.cpp:23
Twitch()
Definition Twitch.cpp:13
Str_8 GetRedURI() const
Definition Twitch.cpp:136
bool IsVerificationForced() const
Definition Twitch.cpp:141
Str_8 GetClientId() const
Definition Twitch.cpp:126
Str_8 GetSecret() const
Definition Twitch.cpp:131
Definition Anchor.h:6
Str< Char_8, UInt_64 > Str_8
Definition Str.h:1902