class Caridina::Events::StrippedState

Overview

This event represents a StrippedState event.

It is used in Member event and in Responses::Sync in invited rooms's state. It is actually a state event, but it does not inherit from StateEvent as some fields are not presents.

This type is used to represents many distinct stripped state events. To distinguish them you must check the #content's type.

Included Modules

Defined in:

events/state_events.cr

Constructors

Instance Method Summary

Instance methods inherited from class Caridina::Events::Event

type : String type

Constructor methods inherited from class Caridina::Events::Event

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(pull : JSON::PullParser) #

This event represents a StrippedState event.

It is used in Member event and in Responses::Sync in invited rooms's state. It is actually a state event, but it does not inherit from StateEvent as some fields are not presents.

This type is used to represents many distinct stripped state events. To distinguish them you must check the #content's type.


[View source]

Instance Method Detail

def content : Event::Content #

[View source]
def room_id : String | Nil #

"room_id" is not set in events returned from the sync API, so we need to set it up ourself.


[View source]
def room_id=(room_id : String | Nil) #

"room_id" is not set in events returned from the sync API, so we need to set it up ourself.


[View source]
def sender : String #

[View source]
def state_key : String #

[View source]