struct Apps::MessageFromTo

Included Modules

Defined in:

pb-Apps/CATS_LiveMessage.pb.cr

Constant 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: :receiver, 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}, 5 => {name: :timestamp, 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

Class Method Summary

Instance Method Summary

Constructor Detail

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

def self.new(sender : String | Nil = nil, receiver : String | Nil = nil, message_text : String | Nil = nil, timestamp : String | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def message_text : String | Nil #

def message_text=(message_text : String | Nil) #

def receiver : String | Nil #

def receiver=(receiver : String | Nil) #

def sender : String | Nil #

def sender=(sender : String | Nil) #

def timestamp : String | Nil #

def timestamp=(timestamp : String | Nil) #

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

def to_protobuf #