public ServerNotifyMessage(NotifyMessage msg) : this() { this.AppID = msg.AppID; this.UserID = msg.UserID; this.LoginName = msg.LoginName; this.Message = msg.Message; this.Param = msg.Param; this.Title = msg.Title; this.MsgType = msg.MsgType; }
public void ReceiveMsg(NotifyMessage[] msgs) { if (msgs != null) { foreach (var notifyMessage in msgs) { //File.AppendAllText(AppDomain.CurrentDomain.BaseDirectory + "/ReceiveMsg.log", string.Format("{0}{1}", notifyMessage, Environment.NewLine)); manager.ExcuteNonQuery("sqliteTemplate", "Service.ReceiveMsg", new ServerNotifyMessage(notifyMessage)); } } return; }