using System; using System.Collections.Generic; using System.Text; namespace Shared.Phone.UserCenter { /// /// 固件升级的Resourse /// public class FirmwareUpdateResourse { /// /// App需要升级的URL连接 null:还没有读取过版本 string.Empty:不需要升级 有url:需要升级 /// public static string AppNeedUpdateUrl = null; /// /// 网关需要升级的对象列表 /// public static List ListGatewayNeedUpdate = new List(); /// /// 是否已经读取公告 /// public static bool ReadedNotice = false; /// /// 固件的升级信息 /// public static Dictionary> dicFirmwareInfo = new Dictionary>(); /// /// 升级列表 /// public static Dictionary dicUpdateList = new Dictionary(); } /// /// 固件升级的Common /// public class HdlDeviceUpdateCommonLogic { /// /// 升级类的区分(1:网关,2:设备) /// public int ClassDiv = 0; /// /// 当前执行状态(出现错误时,它也会变成true) /// public UpdateStatuMode UpdateStatu = UpdateStatuMode.None; /// /// 升级是否完成 /// public bool IsFinishUpdate = true; /// /// 进入执行更新操作准备阶段 /// public virtual void DoStartUpdate() { } /// /// 释放缓存 /// public virtual void Dispose() { } } }