-rw-r--r-- | include/opkele/oauth.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/opkele/oauth.h b/include/opkele/oauth.h index 14d0586..bc6c2fa 100644 --- a/include/opkele/oauth.h +++ b/include/opkele/oauth.h | |||
@@ -1,22 +1,24 @@ | |||
1 | #ifndef __OPKELE_OAUTH_H | 1 | #ifndef __OPKELE_OAUTH_H |
2 | #define __OPKELE_OAUTH_H | 2 | #define __OPKELE_OAUTH_H |
3 | 3 | ||
4 | #include <string> | 4 | #include <string> |
5 | 5 | ||
6 | namespace opkele { | 6 | namespace opkele { |
7 | namespace oauth { | 7 | namespace oauth { |
8 | using std::string; | 8 | using std::string; |
9 | 9 | ||
10 | struct token_t { | 10 | struct token_t { |
11 | string key; | 11 | string key; |
12 | string secret; | 12 | string secret; |
13 | 13 | ||
14 | token_t() { } | 14 | token_t() { } |
15 | token_t(const string& k,const string& s) | 15 | token_t(const string& k,const string& s) |
16 | : key(k), secret(s) { } | 16 | : key(k), secret(s) { } |
17 | |||
18 | bool empty() const { return key.empty() && secret.empty(); } | ||
17 | }; | 19 | }; |
18 | 20 | ||
19 | } | 21 | } |
20 | } | 22 | } |
21 | 23 | ||
22 | #endif /* __OPKELE_OAUTH_H */ | 24 | #endif /* __OPKELE_OAUTH_H */ |