class Caridina::Events::StrippedState

Overview

Represents a StrippedState event.

It is used in Member event and in Responses::Sync in invited rooms' 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:

caridina/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) #

Represents a StrippedState event.

It is used in Member event and in Responses::Sync in invited rooms' 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 #

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

[View source]
def sender : String #

[View source]
def state_key : String #

[View source]