struct Murcure::Protos::UserState

Included Modules

Defined in:

murcure/utils/protos.cr

Constant Summary

FIELDS = {1 => {name: :session, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :actor, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :user_id, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :channel_id, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :mute, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :deaf, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :suppress, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :self_mute, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :self_deaf, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :texture, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :plugin_context, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :plugin_identity, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :comment, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :hash, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :comment_hash, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :texture_hash, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :priority_speaker, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 19 => {name: :recording, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(buf : Protobuf::Buffer) #

def self.new(session : UInt32 | Nil = nil, actor : UInt32 | Nil = nil, name : String | Nil = nil, user_id : UInt32 | Nil = nil, channel_id : UInt32 | Nil = nil, mute : Bool | Nil = nil, deaf : Bool | Nil = nil, suppress : Bool | Nil = nil, self_mute : Bool | Nil = nil, self_deaf : Bool | Nil = nil, texture : Slice(UInt8) | Nil = nil, plugin_context : Slice(UInt8) | Nil = nil, plugin_identity : String | Nil = nil, comment : String | Nil = nil, hash : String | Nil = nil, comment_hash : Slice(UInt8) | Nil = nil, texture_hash : Slice(UInt8) | Nil = nil, priority_speaker : Bool | Nil = nil, recording : Bool | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def actor : UInt32 | Nil #

def actor=(actor : UInt32 | Nil) #

def channel_id : UInt32 | Nil #

def channel_id=(channel_id : UInt32 | Nil) #

def comment : String | Nil #

def comment=(comment : String | Nil) #

def comment_hash : Slice(UInt8) | Nil #

def comment_hash=(comment_hash : Slice(UInt8) | Nil) #

def deaf : Bool | Nil #

def deaf=(deaf : Bool | Nil) #

def hash : String | Nil #
Description copied from class Object

Generates an UInt64 hash value for this object.

This method must have the property that a == b implies a.hash == b.hash.

The hash value is used along with == by the Hash class to determine if two objects reference the same hash key.

Subclasses must not override this method. Instead, they must define hash(hasher), though usually the macro def_hash can be used to generate this method.


def hash=(hash : String | Nil) #

def mute : Bool | Nil #

def mute=(mute : Bool | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def plugin_context : Slice(UInt8) | Nil #

def plugin_context=(plugin_context : Slice(UInt8) | Nil) #

def plugin_identity : String | Nil #

def plugin_identity=(plugin_identity : String | Nil) #

def priority_speaker : Bool | Nil #

def priority_speaker=(priority_speaker : Bool | Nil) #

def recording : Bool | Nil #

def recording=(recording : Bool | Nil) #

def self_deaf : Bool | Nil #

def self_deaf=(self_deaf : Bool | Nil) #

def self_mute : Bool | Nil #

def self_mute=(self_mute : Bool | Nil) #

def session : UInt32 | Nil #

def session=(session : UInt32 | Nil) #

def suppress : Bool | Nil #

def suppress=(suppress : Bool | Nil) #

def texture : Slice(UInt8) | Nil #

def texture=(texture : Slice(UInt8) | Nil) #

def texture_hash : Slice(UInt8) | Nil #

def texture_hash=(texture_hash : Slice(UInt8) | Nil) #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #

def user_id : UInt32 | Nil #

def user_id=(user_id : UInt32 | Nil) #