struct Murcure::Protos::UserRemove

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: false, 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: :reason, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :ban, 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, actor : UInt32 | Nil = nil, reason : String | Nil = nil, ban : 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 ban : Bool | Nil #

def ban=(ban : Bool | Nil) #

def reason : String | Nil #

def reason=(reason : String | Nil) #

def session : UInt32 #

def session=(session : UInt32) #

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

def to_protobuf #