/// <summary> /// 更新 /// </summary> public void Update(base_mail_list data) { this.id = data.id; this.type = data.type; this.read_state = data.read_state; this.title = data.title; this.send_name = data.send_name; this.send_time = data.send_time; this.expire_time = data.expire_time; this.contentType = data.content_type; }
/// <summary> /// 构造 /// </summary> public MailData(base_mail_list data) { this.id = data.id; this.type = data.type; this.read_state = data.read_state; this.title = data.title; this.send_name = data.send_name; this.send_time = data.send_time; this.expire_time = data.expire_time; this.contentType = data.content_type; contentItems.Clear(); isNewContent = false; }
void S2C_AllMailList(Pt _info) { pt_all_mail_list_d339 info = _info as pt_all_mail_list_d339; if (info == null) { return; } for (int i = 0; i < info.mails.Count; i++) { base_mail_list data = info.mails[i]; if (!mailDic.ContainsKey(data.id)) { mailDic[data.id] = new MailData(data); } else { mailDic[data.id].Update(data); } } CheckAllMailState(); }