mirror of https://github.com/matrix-org/gomatrix
Move method HasSingleStageFlow() back to the corresponding struct
This commit is contained in:
parent
fc56cbf80a
commit
3e76370297
10
responses.go
10
responses.go
|
@ -90,11 +90,6 @@ type RespUserInteractive struct {
|
||||||
Error string `json:"error"`
|
Error string `json:"error"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// RespUserDisplayName is the JSON response for https://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-profile-userid-displayname
|
|
||||||
type RespUserDisplayName struct {
|
|
||||||
DisplayName string `json:"displayname"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// HasSingleStageFlow returns true if there exists at least 1 Flow with a single stage of stageName.
|
// HasSingleStageFlow returns true if there exists at least 1 Flow with a single stage of stageName.
|
||||||
func (r RespUserInteractive) HasSingleStageFlow(stageName string) bool {
|
func (r RespUserInteractive) HasSingleStageFlow(stageName string) bool {
|
||||||
for _, f := range r.Flows {
|
for _, f := range r.Flows {
|
||||||
|
@ -105,6 +100,11 @@ func (r RespUserInteractive) HasSingleStageFlow(stageName string) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// RespUserDisplayName is the JSON response for https://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-profile-userid-displayname
|
||||||
|
type RespUserDisplayName struct {
|
||||||
|
DisplayName string `json:"displayname"`
|
||||||
|
}
|
||||||
|
|
||||||
// RespRegister is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-register
|
// RespRegister is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-register
|
||||||
type RespRegister struct {
|
type RespRegister struct {
|
||||||
AccessToken string `json:"access_token"`
|
AccessToken string `json:"access_token"`
|
||||||
|
|
Loading…
Reference in New Issue