Add RespUserDisplayName

This commit is contained in:
Marcel 2017-08-22 20:13:42 +02:00 committed by GitHub
parent 1ed3413986
commit fdea86cdb9
1 changed files with 5 additions and 0 deletions

View File

@ -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 {