messages

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

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

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

func (*Message) GetAuthorMXID

func (m *Message) GetAuthorMXID() (mxid string)

GetAuthorMXID returns the authors mxid from the current Message

func (*Message) GetEvent

func (m *Message) GetEvent() (event *gomatrix.Event)

GetEvent returns the gomatrix event from the current Message

func (*Message) GetEventID

func (m *Message) GetEventID() (id string)

GetEventID returns the event ID from the current Message

func (*Message) GetMessage

func (m *Message) GetMessage() (message string)

GetMessage returns the text from the current Message

func (*Message) GetTimestamp

func (m *Message) GetTimestamp() (ts *time.Time)

GetTimestamp returns the timestamp from the current Message

func (*Message) SetAuthorMXID

func (m *Message) SetAuthorMXID(mxid string)

SetAuthorMXID adds the author MXID to the current Message

func (*Message) SetEvent

func (m *Message) SetEvent(event *gomatrix.Event)

SetEvent adds the gomatrix Event to the current Message

func (*Message) SetEventID

func (m *Message) SetEventID(id string)

SetEventID adds the eventID to the current Message

func (*Message) SetMessage

func (m *Message) SetMessage(message string)

SetMessage adds the message Text to the current Message

func (*Message) SetTimestamp

func (m *Message) SetTimestamp(ts *time.Time)

SetTimestamp adds the Timestamp to the current Message

func (*Message) Show

func (m *Message) Show() error

Show adds the current Message to the UI TODO implement it

Jump to

Keyboard shortcuts

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