struct Murcure::Protos::UserStats::Stats

Included Modules

Defined in:

murcure/utils/protos.cr

Constant Summary

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

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def good : UInt32 | Nil #

def good=(good : UInt32 | Nil) #

def late : UInt32 | Nil #

def late=(late : UInt32 | Nil) #

def lost : UInt32 | Nil #

def lost=(lost : UInt32 | Nil) #

def resync : UInt32 | Nil #

def resync=(resync : UInt32 | Nil) #

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

def to_protobuf #