Exemplo n.º 1
0
 public Message(string type, string from, string to, long time)
 {
     this.MsgType = type;
     this.From    = from;
     this.To      = to;
     this.Time    = time;
     this._Time   = Utities.GetTime(this.Time);
 }
Exemplo n.º 2
0
 public Message(XmlDocument doc)
 {
     this.To      = doc.GetElementsByTagName("ToUserName")[0].InnerText;
     this.From    = doc.GetElementsByTagName("FromUserName")[0].InnerText;
     this.Time    = Convert.ToInt32(doc.GetElementsByTagName("CreateTime")[0].InnerText);
     this.MsgType = doc.GetElementsByTagName("MsgType")[0].InnerText;
     this._Time   = Utities.GetTime(this.Time);
 }