struct Apps::Support::Device

Included Modules

Defined in:

pb-Apps/CATS_Support.pb.cr

Constant Summary

FIELDS = {1 => {name: :i, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 2 => {name: :u, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 3 => {name: :e, pb_type: :bool, crystal_type: Bool, cast_type: Bool, native: true, optional: false, repeated: false, default: nil, packed: false}, 4 => {name: :c, pb_type: DeviceCategory, crystal_type: DeviceCategory, cast_type: DeviceCategory?, native: false, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :g, pb_type: GroupDeviceAttributes, crystal_type: GroupDeviceAttributes, cast_type: Array(GroupDeviceAttributes)?, native: false, optional: true, repeated: true, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(i : String, u : String, e : Bool, c : DeviceCategory | Nil = nil, g : Array(GroupDeviceAttributes) | Nil = nil) #

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

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def c : DeviceCategory | Nil #

def c=(c : DeviceCategory | Nil) #

def e : Bool #

def e=(e : Bool) #

def g : Array(GroupDeviceAttributes) | Nil #

def g=(g : Array(GroupDeviceAttributes) | Nil) #

def i : String #

def i=(i : String) #

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

def to_protobuf #

def u : String #

def u=(u : String) #