users

package
v0.0.0-...-3ddecfe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2018 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	// contains filtered or unexported fields
}

User holds the needed User data and allows to work with that. It gets normally loaded from the cache

func (*User) GetAvatar

func (u *User) GetAvatar(roomID string) ([]byte, error)

GetAvatar returns the avatar from the current User

func (*User) GetCli

func (u *User) GetCli() *gomatrix.Client

GetCli returns the gomatrix.Client from the current User

func (*User) GetDisplayName

func (u *User) GetDisplayName(roomID string) (string, error)

GetDisplayName returns the displayName from the current User

func (*User) GetMXID

func (u *User) GetMXID() string

GetMXID returns the mxid from the current User

func (*User) SetAvatar

func (u *User) SetAvatar(roomID string, avatar []byte)

SetAvatar adds the avatar to the current User

func (*User) SetCli

func (u *User) SetCli(cli *gomatrix.Client)

SetCli adds the gomatrix.Client to the current User. This only happens if the User is the current User aka the one that logged into the client.

func (*User) SetDisplayName

func (u *User) SetDisplayName(roomID string, name string)

SetDisplayName adds the displayName to the current User

func (*User) SetMXID

func (u *User) SetMXID(id string)

SetMXID adds the mxid to the current User

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL