From 3e76370297409e43fab82db778d7d7a04f88990a Mon Sep 17 00:00:00 2001 From: MTRNord Date: Tue, 22 Aug 2017 21:41:15 +0200 Subject: [PATCH] Move method HasSingleStageFlow() back to the corresponding struct --- responses.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/responses.go b/responses.go index c729d5b..fe0eeb3 100644 --- a/responses.go +++ b/responses.go @@ -90,11 +90,6 @@ type RespUserInteractive struct { 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. func (r RespUserInteractive) HasSingleStageFlow(stageName string) bool { for _, f := range r.Flows { @@ -105,6 +100,11 @@ func (r RespUserInteractive) HasSingleStageFlow(stageName string) bool { 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 type RespRegister struct { AccessToken string `json:"access_token"`