/// <summary> /// Constructor /// </summary> public AvailableNetworkGroupPack( InterfaceConnectionInfo interfaceInfo, NetworkIdentifier ssid, BssType bssType, int signalQuality, bool isSecurityEnabled, string profileName, bool isNetworkConnectable, string wlanNotConnectableReason, AuthenticationMethod authenticationMethod, EncryptionType encryptionType, IEnumerable <BssNetworkPack> bssNetworks) : base( interfaceInfo: interfaceInfo, ssid: ssid, bssType: bssType, signalQuality: signalQuality, isSecurityEnabled: isSecurityEnabled, profileName: profileName, isNetworkConnectable: isNetworkConnectable, wlanNotConnectableReason: wlanNotConnectableReason, authenticationMethod: authenticationMethod, encryptionType: encryptionType) { this._bssNetworks = bssNetworks.OrderByDescending(x => x.LinkQuality).ToArray(); var highestLinkQualityNetwork = _bssNetworks.FirstOrDefault(); if (highestLinkQualityNetwork != null) { LinkQuality = highestLinkQualityNetwork.LinkQuality; Frequency = highestLinkQualityNetwork.Frequency; Band = highestLinkQualityNetwork.Band; Channel = highestLinkQualityNetwork.Channel; } }
/// <summary> /// Constructor /// </summary> public ProfileRadioPack( string name, InterfaceConnectionInfo interfaceInfo, ProfileType profileType, string profileXml, int position, int signalQuality, int linkQuality, int frequency, float band, int channel) : base( name: name, interfaceInfo: interfaceInfo, profileType: profileType, profileXml: profileXml, position: position) { this.SignalQuality = signalQuality; this.LinkQuality = linkQuality; this.Frequency = frequency; this.Band = band; this.Channel = channel; }
/// <summary> /// Constructor /// </summary> public AvailableNetworkPack( InterfaceConnectionInfo interfaceInfo, NetworkIdentifier ssid, BssType bssType, int signalQuality, bool isSecurityEnabled, string profileName, bool isNetworkConnectable, string wlanNotConnectableReason, AuthenticationMethod authenticationMethod, EncryptionType encryptionType) { this.Interface = interfaceInfo; this.Ssid = ssid; this.BssType = bssType; this.SignalQuality = signalQuality; this.IsSecurityEnabled = isSecurityEnabled; this.ProfileName = profileName; this.NetworkConnectable = isNetworkConnectable; this.WlanNotConnectableReason = wlanNotConnectableReason; this.Authentication = authenticationMethod; this.Encryption = encryptionType; }