internal Message(WTalk.Core.ProtoJson.Schema.Event chatEvent) { Id = chatEvent.event_id; SenderId = chatEvent.sender_id.gaia_id; selfUserId = chatEvent.self_event_state.user_id.gaia_id; AppendContent(chatEvent); MessageDate = chatEvent.timestamp.FromUnixTime(); }
internal Message(WTalk.Core.ProtoJson.Schema.Event chatEvent) { Id = chatEvent.event_id; SenderId = chatEvent.sender_id.chat_id; selfUserId = chatEvent.self_event_state.user_id.chat_id; AppendContent(chatEvent.chat_message); MessageDate = DateTime.Now.FromMillisecondsSince1970(chatEvent.timestamp / 1000); }
internal void AppendContent(WTalk.Core.ProtoJson.Schema.Event chatEvent) { _content.AddRange(chatEvent.chat_message.message_content.segment.Select(c => c.text)); MessageDate = chatEvent.timestamp.FromUnixTime(); OnPropertyChanged("Content"); }