示例#1
0
        internal Message(IDataRecord reader)
        {
            _from = new Jid((string)reader["From"]);
            _to = new Jid((string)reader["To"]);
            _body = (string)reader["Body"];

            DateTime = new RelativeOldness(System.DateTime.FromBinary((Int64)reader["DateTime"]));
        }
        public MucMessage(agsXMPP.protocol.client.Message message, MucContact sender)
        {
            _message = message;
            _sender = sender;

            if (_message.XDelay != null)
            {
                DateTime = new RelativeOldness(_message.XDelay.Stamp);
            }
        }
示例#3
0
        internal Message(agsXMPP.protocol.client.Message message)
        {
            _from = message.From;
            _to = message.To;
            _body = message.Body;

            if (message.XDelay != null)
            {
                DateTime = new RelativeOldness(message.XDelay.Stamp);
            }
        }
示例#4
0
        public void SetLastOnline(Last last)
        {
            _lastOnline = new RelativeOldness(DateTime.Now.Subtract(new TimeSpan(0, 0, last.Seconds)));

            NotifyPropertyChanged("LastOnline");
        }