struct Murcure::Protos::UserList::User

Included Modules

Defined in:

murcure/utils/protos.cr

Constant Summary

FIELDS = {1 => {name: :user_id, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32, native: true, optional: false, repeated: false, default: nil, packed: false}, 2 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :last_seen, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :last_channel, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, 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(user_id : UInt32, name : String | Nil = nil, last_seen : String | Nil = nil, last_channel : UInt32 | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def last_channel : UInt32 | Nil #

def last_channel=(last_channel : UInt32 | Nil) #

def last_seen : String | Nil #

def last_seen=(last_seen : String | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

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

def to_protobuf #

def user_id : UInt32 #

def user_id=(user_id : UInt32) #