summaryrefslogtreecommitdiffabout
path: root/include/opkele
Side-by-side diff
Diffstat (limited to 'include/opkele') (more/less context) (ignore whitespace changes)
-rw-r--r--include/opkele/oauth.h2
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 @@
#ifndef __OPKELE_OAUTH_H
#define __OPKELE_OAUTH_H
#include <string>
namespace opkele {
namespace oauth {
using std::string;
struct token_t {
string key;
string secret;
token_t() { }
token_t(const string& k,const string& s)
: key(k), secret(s) { }
+
+ bool empty() const { return key.empty() && secret.empty(); }
};
}
}
#endif /* __OPKELE_OAUTH_H */