blob: 52445205866631e5965bd5a6f4828da8dc875a8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
/******************************************************************************
* THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
*/
#pragma once
#include "csapi/definitions/user_identifier.h"
#include "csapi/definitions/wellknown/full.h"
#include "jobs/basejob.h"
namespace Quotient {
/*! \brief Get the supported login types to authenticate users
*
* Gets the homeserver's supported login types to authenticate users. Clients
* should pick one of these and supply it as the `type` when logging in.
*/
class QUOTIENT_API GetLoginFlowsJob : public BaseJob {
public:
// Inner data structures
/// Gets the homeserver's supported login types to authenticate users.
/// Clients should pick one of these and supply it as the `type` when
/// logging in.
struct LoginFlow {
/// The login type. This is supplied as the `type` when
/// logging in.
QString type;
};
// Construction/destruction
/// Get the supported login types to authenticate users
explicit GetLoginFlowsJob();
/*! \brief Construct a URL without creating a full-fledged job object
*
* This function can be used when a URL for GetLoginFlowsJob
* is necessary but the job itself isn't.
*/
static QUrl makeRequestUrl(QUrl baseUrl);
// Result properties
/// The homeserver's supported login types
QVector<LoginFlow> flows() const
{
return loadFromJson<QVector<LoginFlow>>("flows"_ls);
}
};
template <>
struct JsonObjectConverter<GetLoginFlowsJob::LoginFlow> {
static void fillFrom(const
|