summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/WhatsAPI++/WARegister.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-09-18 21:52:10 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-09-18 21:52:10 +0000
commit6d932bfaf11e4699355fedc45e28b353b8877130 (patch)
tree78d3f6741cf9762d2c6b97ed1f5bc472e850e15f /protocols/WhatsApp/src/WhatsAPI++/WARegister.h
parent4dd774d667df90583315c04696537b6397f6fc02 (diff)
merge into trunk
git-svn-id: http://svn.miranda-ng.org/main/trunk@10515 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++/WARegister.h')
-rw-r--r--protocols/WhatsApp/src/WhatsAPI++/WARegister.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/protocols/WhatsApp/src/WhatsAPI++/WARegister.h b/protocols/WhatsApp/src/WhatsAPI++/WARegister.h
new file mode 100644
index 0000000000..f2fe0e230b
--- /dev/null
+++ b/protocols/WhatsApp/src/WhatsAPI++/WARegister.h
@@ -0,0 +1,23 @@
+/*
+ * WARegister.h
+ */
+
+#ifndef WAREGISTER_H_
+#define WAREGISTER_H_
+
+#include <string>
+
+struct WAToken
+{
+ static std::string GenerateToken(const std::string &number);
+};
+
+class WARegister
+{
+ static std::string GenerateIdentity(const std::string &phone);
+
+public:
+ static CMStringA RequestCodeUrl(const std::string &phone, const std::string &code);
+};
+
+#endif /* WAREGISTER_H_ */