struct Apps::ChatHistory

Included Modules

Defined in:

pb-Apps/CATS_LiveMessage.pb.cr

Constant Summary

FIELDS = {1 => {name: :chat_partner, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 2 => {name: :messages, pb_type: HistoryMessage, crystal_type: HistoryMessage, cast_type: Array(HistoryMessage)?, 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(buf : Protobuf::Buffer) #

def self.new(chat_partner : String, messages : Array(HistoryMessage) | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def chat_partner : String #

def chat_partner=(chat_partner : String) #

def messages : Array(HistoryMessage) | Nil #

def messages=(messages : Array(HistoryMessage) | Nil) #

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

def to_protobuf #