/// <summary> /// /// </summary> /// <param name="osState">状态</param> /// <param name="value">值</param> protected OsProperty(DeviceMatchType osState, string value) { this.Keys = null; this.ExceptRegexs = null; this.Regexs = null; this.ExceptRegexs = null; this.OsState = osState; this.Value = value; }
/// <summary> /// /// </summary> /// <param name="keys">Key名称,&&</param> /// <param name="exceptKeys">除哪些key什么之外</param> /// <param name="regexs">Key名称,&&</param> /// <param name="exceptRegexs"></param> /// <param name="value">值</param> /// <param name="osState">状态</param> public OsProperty(string[] keys, string[] exceptKeys, Regex[] regexs, Regex[] exceptRegexs, string value, DeviceMatchType osState) : this(osState, value) { this.Keys = keys; this.ExceptKeys = exceptKeys; this.Regexs = regexs; this.ExceptRegexs = exceptRegexs; }
/// <summary> /// /// </summary> /// <param name="deviceMatchType"></param> /// <param name="os"></param> /// <param name="deviceType">设备类型</param> /// <param name="manufacturer">制造商</param> /// <param name="model">设备</param> /// <param name="identified">是否确认</param> internal DeviceProperty(DeviceMatchType deviceMatchType, string os, DeviceType deviceType, string manufacturer, string model, bool identified) { DeviceMatchType = deviceMatchType; Os = os; ManufacturerValue = manufacturer; DeviceType = deviceType; Model = model; Identified = identified; }