rooms

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: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Room

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

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

func (*Room) GetAvatar

func (r *Room) GetAvatar() ([]byte, error)

GetAvatar returns the avatar from the current Room

func (*Room) GetMessages

func (r *Room) GetMessages() []matrix.Message

GetMessages returns the messages from the current Room

func (*Room) GetName

func (r *Room) GetName() (string, error)

GetName returns the name from the current Room

func (*Room) GetRoomAliases

func (r *Room) GetRoomAliases() []string

GetRoomAliases returns the room aliases from the current Room

func (*Room) GetRoomID

func (r *Room) GetRoomID() string

GetRoomID returns the room ID from the current Room

func (*Room) GetTopic

func (r *Room) GetTopic() (string, error)

GetTopic returns the topic from the current Room

func (*Room) SetAvatar

func (r *Room) SetAvatar(avatar []byte)

SetAvatar adds the avatar to the current Room

func (*Room) SetMessages

func (r *Room) SetMessages(messages []matrix.Message)

SetMessages adds the messages to the current Room

func (*Room) SetName

func (r *Room) SetName(name string)

SetName adds the name to the current Room

func (*Room) SetRoomAliases

func (r *Room) SetRoomAliases(aliases []string)

SetRoomAliases adds the aliases to the current Room

func (*Room) SetRoomID

func (r *Room) SetRoomID(id string)

SetRoomID adds the roomID to the current Room

func (*Room) SetTopic

func (r *Room) SetTopic(topic string)

SetTopic adds the topic to the current Room

Jump to

Keyboard shortcuts

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