Пример #1
0
        private UnsupportedMessageObservable GetUnsupportedMessageObservable(
            Message message)
        {
            ReplyObservable reply = GetReplyObservable(message);

            return(new UnsupportedMessageObservable(
                       message.MessageData.Id,
                       message.MessageData.Date,
                       message.UserData.UserName,
                       message.MessageData.IsOutgoing,
                       reply));
        }
Пример #2
0
        private TextMessageObservable GetTextMessageObservable(Message message, string text)
        {
            ReplyObservable reply = GetReplyObservable(message);

            return(new TextMessageObservable(
                       message.MessageData.Id,
                       message.MessageData.Date,
                       message.UserData.UserName,
                       message.MessageData.IsOutgoing,
                       text,
                       reply));
        }