aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/registration.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-19 15:01:33 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-19 15:03:24 +0200
commite17764a1ae81393968dfb747c7b67353c109bc71 (patch)
treebbff0707ae3622e22c67d0cc310370eb5126ac7e /lib/csapi/registration.h
parentcbd107e595bbb78ef3411a4a92f66d495c6fc5b4 (diff)
downloadlibquotient-e17764a1ae81393968dfb747c7b67353c109bc71.tar.gz
libquotient-e17764a1ae81393968dfb747c7b67353c109bc71.zip
csapi/: generated using the latest GTAD and matrix-doc
For matrix-doc, specifically, it is master (5cb4b086) merged with https://github.com/matrix-org/matrix-doc/pull/2518.
Diffstat (limited to 'lib/csapi/registration.h')
-rw-r--r--lib/csapi/registration.h23
1 files changed, 7 insertions, 16 deletions
diff --git a/lib/csapi/registration.h b/lib/csapi/registration.h
index 9d96db32..62bc35f1 100644
--- a/lib/csapi/registration.h
+++ b/lib/csapi/registration.h
@@ -4,10 +4,9 @@
#pragma once
-#include "csapi/../identity/definitions/request_msisdn_validation.h"
-#include "csapi/./definitions/request_email_validation.h"
-#include "csapi/./definitions/request_msisdn_validation.h"
#include "csapi/definitions/auth_data.h"
+#include "csapi/definitions/request_email_validation.h"
+#include "csapi/definitions/request_msisdn_validation.h"
#include "csapi/definitions/request_token_response.h"
#include "jobs/basejob.h"
@@ -62,7 +61,6 @@ class RegisterJob : public BaseJob {
public:
/*! \brief Register for an account on this homeserver.
*
- *
* \param kind
* The kind of account to register. Defaults to ``user``.
*
@@ -148,7 +146,6 @@ public:
/*! \brief Begins the validation process for an email to be used during
* registration.
*
- *
* \param body
* The homeserver must check that the given email address is **not**
* already associated with an account on this homeserver. The homeserver
@@ -162,7 +159,7 @@ public:
/// An email has been sent to the specified address. Note that this
/// may be an email containing the validation token or it may be
/// informing the user of an error.
- RequestTokenResponse data() const
+ RequestTokenResponse response() const
{
return fromJson<RequestTokenResponse>(jsonData());
}
@@ -181,7 +178,6 @@ public:
/*! \brief Requests a validation token be sent to the given phone number for
* the purpose of registering an account
*
- *
* \param body
* The homeserver must check that the given phone number is **not**
* already associated with an account on this homeserver. The homeserver
@@ -195,7 +191,7 @@ public:
/// An SMS message has been sent to the specified phone number. Note
/// that this may be an SMS message containing the validation token or
/// it may be informing the user of an error.
- RequestTokenResponse data() const
+ RequestTokenResponse response() const
{
return fromJson<RequestTokenResponse>(jsonData());
}
@@ -221,7 +217,6 @@ class ChangePasswordJob : public BaseJob {
public:
/*! \brief Changes a user's password.
*
- *
* \param newPassword
* The new password for the account.
*
@@ -270,7 +265,6 @@ public:
/*! \brief Requests a validation token be sent to the given email address
* for the purpose of resetting a user's password
*
- *
* \param body
* The homeserver must check that the given email address **is
* associated** with an account on this homeserver. This API should be
@@ -299,7 +293,7 @@ public:
// Result properties
/// An email was sent to the given address.
- RequestTokenResponse data() const
+ RequestTokenResponse response() const
{
return fromJson<RequestTokenResponse>(jsonData());
}
@@ -333,7 +327,6 @@ public:
/*! \brief Requests a validation token be sent to the given phone number for
* the purpose of resetting a user's password.
*
- *
* \param body
* The homeserver must check that the given phone number **is
* associated** with an account on this homeserver. This API should be
@@ -357,12 +350,12 @@ public:
* #post-matrix-client-r0-register-email-requesttoken
*/
explicit RequestTokenToResetPasswordMSISDNJob(
- const RequestMsisdnValidation& body);
+ const MsisdnValidationData& body);
// Result properties
/// An SMS message was sent to the given phone number.
- RequestTokenResponse data() const
+ RequestTokenResponse response() const
{
return fromJson<RequestTokenResponse>(jsonData());
}
@@ -389,7 +382,6 @@ class DeactivateAccountJob : public BaseJob {
public:
/*! \brief Deactivate a user's account.
*
- *
* \param auth
* Additional authentication information for the user-interactive
* authentication API.
@@ -440,7 +432,6 @@ class CheckUsernameAvailabilityJob : public BaseJob {
public:
/*! \brief Checks to see if a username is available on the server.
*
- *
* \param username
* The username to check the availability of.
*/