struct Murcure::Protos::UserList::User
- Murcure::Protos::UserList::User
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
murcure/utils/protos.crConstant 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
- .new(buf : Protobuf::Buffer)
- .new(user_id : UInt32, name : String | Nil = nil, last_seen : String | Nil = nil, last_channel : UInt32 | Nil = nil)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #last_channel : UInt32 | Nil
- #last_channel=(last_channel : UInt32 | Nil)
- #last_seen : String | Nil
- #last_seen=(last_seen : String | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #user_id : UInt32
- #user_id=(user_id : UInt32)
Constructor Detail
def self.new(user_id : UInt32, name : String | Nil = nil, last_seen : String | Nil = nil, last_channel : UInt32 | Nil = nil)
#