struct Client::LiveMessage
- Client::LiveMessage
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
pb-Client/CATS_LiveMessage.pb.crConstant 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
- .new(buf : Protobuf::Buffer)
- .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 Summary
Instance Method Summary
- #[](key : String)
- #add_user : AddUser | Nil
- #add_user=(add_user : AddUser | Nil)
- #chat_history : ChatHistory | Nil
- #chat_history=(chat_history : ChatHistory | Nil)
- #get_chat_history : GetChatHistory | Nil
- #get_chat_history=(get_chat_history : GetChatHistory | Nil)
- #get_user_presence : GetUserPresence | Nil
- #get_user_presence=(get_user_presence : GetUserPresence | Nil)
- #message_from_to : MessageFromTo | Nil
- #message_from_to=(message_from_to : MessageFromTo | Nil)
- #message_type : Int32
- #message_type=(message_type : Int32)
- #set_my_status : SetMyStatus | Nil
- #set_my_status=(set_my_status : SetMyStatus | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #user_status_change : UserStatus | Nil
- #user_status_change=(user_status_change : UserStatus | Nil)
- #user_status_init : Array(UserStatus) | Nil
- #user_status_init=(user_status_init : Array(UserStatus) | Nil)
Constructor Detail
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)
#