struct Apps::HistoryMessage
- Apps::HistoryMessage
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
pb-Apps/CATS_LiveMessage.pb.crConstant Summary
-
FIELDS =
{1 => {name: :sender, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :direction, pb_type: MSGDirection, crystal_type: MSGDirection, cast_type: MSGDirection?, native: false, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :timestamp, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :message_text, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Constructors
- .new(buf : Protobuf::Buffer)
- .new(sender : String | Nil = nil, direction : MSGDirection | Nil = nil, timestamp : String | Nil = nil, message_text : String | Nil = nil)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #direction : MSGDirection | Nil
- #direction=(direction : MSGDirection | Nil)
- #message_text : String | Nil
- #message_text=(message_text : String | Nil)
- #sender : String | Nil
- #sender=(sender : String | Nil)
- #timestamp : String | Nil
- #timestamp=(timestamp : String | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
Constructor Detail
def self.new(sender : String | Nil = nil, direction : MSGDirection | Nil = nil, timestamp : String | Nil = nil, message_text : String | Nil = nil)
#