struct Client::LiveMessage

Included Modules

Defined in:

pb-Client/CATS_LiveMessage.pb.cr

Constant Summary

FIELDS = {1 => {name: :message_type, pb_type: :int32, crystal_type: Int32, cast_type: Int32, native: true, optional: false, repeated: false, default: nil, packed: false}, 2 => {name: :message_from_to, pb_type: MessageFromTo, crystal_type: MessageFromTo, cast_type: MessageFromTo?, native: false, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :user_status_change, pb_type: UserStatus, crystal_type: UserStatus, cast_type: UserStatus?, native: false, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :set_my_status, pb_type: SetMyStatus, crystal_type: SetMyStatus, cast_type: SetMyStatus?, native: false, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :add_user, pb_type: AddUser, crystal_type: AddUser, cast_type: AddUser?, native: false, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :user_status_init, pb_type: UserStatus, crystal_type: UserStatus, cast_type: Array(UserStatus)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 7 => {name: :get_chat_history, pb_type: GetChatHistory, crystal_type: GetChatHistory, cast_type: GetChatHistory?, native: false, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :chat_history, pb_type: ChatHistory, crystal_type: ChatHistory, cast_type: ChatHistory?, native: false, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :get_user_presence, pb_type: GetUserPresence, crystal_type: GetUserPresence, cast_type: GetUserPresence?, native: false, 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(message_type : Int32, message_from_to : MessageFromTo | Nil = nil, user_status_change : UserStatus | Nil = nil, set_my_status : SetMyStatus | Nil = nil, add_user : AddUser | Nil = nil, user_status_init : Array(UserStatus) | Nil = nil, get_chat_history : GetChatHistory | Nil = nil, chat_history : ChatHistory | Nil = nil, get_user_presence : GetUserPresence | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def add_user : AddUser | Nil #

def add_user=(add_user : AddUser | Nil) #

def chat_history : ChatHistory | Nil #

def chat_history=(chat_history : ChatHistory | Nil) #

def get_chat_history : GetChatHistory | Nil #

def get_chat_history=(get_chat_history : GetChatHistory | Nil) #

def get_user_presence : GetUserPresence | Nil #

def get_user_presence=(get_user_presence : GetUserPresence | Nil) #

def message_from_to : MessageFromTo | Nil #

def message_from_to=(message_from_to : MessageFromTo | Nil) #

def message_type : Int32 #

def message_type=(message_type : Int32) #

def set_my_status : SetMyStatus | Nil #

def set_my_status=(set_my_status : SetMyStatus | Nil) #

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

def to_protobuf #

def user_status_change : UserStatus | Nil #

def user_status_change=(user_status_change : UserStatus | Nil) #

def user_status_init : Array(UserStatus) | Nil #

def user_status_init=(user_status_init : Array(UserStatus) | Nil) #