From fdea86cdb93f641366e98cb7e9f8682a0a4f819f Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 22 Aug 2017 20:13:42 +0200 Subject: [PATCH] Add RespUserDisplayName --- responses.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/responses.go b/responses.go index 1b9b066..c729d5b 100644 --- a/responses.go +++ b/responses.go @@ -90,6 +90,11 @@ 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 {