From 0fc9b4d4d748c362d190bbf91f749be3bdea9678 Mon Sep 17 00:00:00 2001 From: "hyunsube.lee" Date: Wed, 2 Oct 2024 10:44:16 +0900 Subject: [PATCH] [WIFI] Reinforce API documents --- .../Tizen.Network.WiFi/WiFiAP.cs | 8 ++--- .../WiFiAddressInformation.cs | 4 +-- .../Tizen.Network.WiFi/WiFiEap.cs | 13 +++++--- .../Tizen.Network.WiFi/WiFiManager.cs | 32 +++++++++---------- .../Tizen.Network.WiFi/WiFiNetwork.cs | 4 +-- .../Tizen.Network.WiFi/WiFiSecurity.cs | 2 +- 6 files changed, 33 insertions(+), 30 deletions(-) diff --git a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiAP.cs b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiAP.cs index a4b5f4eb6cc..afda24c146c 100644 --- a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiAP.cs +++ b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiAP.cs @@ -75,7 +75,7 @@ internal WiFiAP(IntPtr handle) } /// - /// Creates an object for the access point. + /// Creates a new instance of the WiFiAP class for the specified access point. /// /// 3 /// The Extended Service Set Identifier of the access point. @@ -95,7 +95,7 @@ public WiFiAP(string essid) } /// - /// Creates an object for the hidden access point. + /// Creates a new instance of the WiFiAP class for a hidden access point. /// /// 3 /// The Extended Service Set Identifier of the access point. @@ -178,7 +178,7 @@ private void Initialize() } /// - /// Refreshes the access point information. + /// Updates the information of the access point to reflect the latest state and details. /// /// 3 /// http://tizen.org/feature/network.wifi @@ -491,7 +491,7 @@ public static Task ConnectWpsWithoutSsidAsync(WpsInfo info) } /// - /// Stops ongoing WPS provisioning + /// Cancels any ongoing Wi-Fi Protected Setup (WPS) provisioning process. /// /// 5 /// http://tizen.org/feature/network.wifi diff --git a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiAddressInformation.cs b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiAddressInformation.cs index 8d69e7e894e..b50642acaae 100755 --- a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiAddressInformation.cs +++ b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiAddressInformation.cs @@ -202,7 +202,7 @@ public DnsConfigType DnsConfigType } /// - /// DHCP server address. It is only supported for IPv4 address family. + /// Represents the DHCP server address for the current Wi-Fi access point (AP). This property is only supported for the IPv4 address family. /// /// Represents DHCP server address. public System.Net.IPAddress DhcpServerAddress @@ -222,7 +222,7 @@ public System.Net.IPAddress DhcpServerAddress } /// - /// DHCP lease duration. It is only supported for IPv4 address family. + /// Represents the DHCP lease duration for the current Wi-Fi access point (AP). This property is only supported for the IPv4 address family. /// /// Represents DHCP lease duration. public int DhcpLeaseDuration diff --git a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiEap.cs b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiEap.cs index 31223a4a5a6..fedd793d392 100755 --- a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiEap.cs +++ b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiEap.cs @@ -137,6 +137,9 @@ internal WiFiEap(Interop.WiFi.SafeWiFiAPHandle apHandle) /// /// Gets the private key file of EAP. + /// Retrieves the file path of the private key used for Extensible Authentication Protocol (EAP) authentication. + /// This method returns the file path of the private key associated with the EAP configuration. The private key is used during the EAP handshake to securely authenticate the client. + /// Note that the returned file path is a string representation of the private key file path. Ensure that the file exists and is accessible before relying on its contents. /// /// 3 /// The file path of private key. @@ -158,7 +161,7 @@ public string GetPrivateKeyFile() } /// - /// Sets the private key information of EAP. + /// Configures the private key file path and password for Extensible Authentication Protocol (EAP) authentication. /// /// 3 /// The file path of private key. @@ -183,7 +186,7 @@ public void SetPrivateKeyFile(string privateKeyFile, string password) } /// - /// Gets the client certificate of EAP. + /// Retrieves the file path of the client certificate used for Extensible Authentication Protocol (EAP) authentication. /// /// 3 /// The file path of client certificate. @@ -208,7 +211,7 @@ public string GetClientCertFile() } /// - /// Sets the CA certificate of EAP. + /// Sets the Certificate Authority (CA) certificate file path for Extensible Authentication Protocol (EAP) authentication. /// /// 3 /// The file path of client certificate. @@ -284,7 +287,7 @@ public bool IsPasswordSet() } /// - /// Sets the user name of EAP. + /// Configures the username for the Extensible Authentication Protocol (EAP) passphrase. /// /// 3 /// The user name @@ -308,7 +311,7 @@ public void SetUserName(string userName) } /// - /// Sets the password of EAP. + /// Configures the password for the Extensible Authentication Protocol (EAP) passphrase. /// /// 3 /// The password diff --git a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiManager.cs b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiManager.cs index d7dd257d003..ab37e3f0216 100755 --- a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiManager.cs +++ b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiManager.cs @@ -232,7 +232,7 @@ static public event EventHandler ScanStateChanged } /// - /// Gets the Wi-Fi safe handle. + /// Retrieves the Wi-Fi safe handle, which is used to manage Wi-Fi operations securely. /// /// 3 /// The instance of the SafeWiFiManagerHandle. @@ -249,7 +249,7 @@ public static SafeWiFiManagerHandle GetWiFiHandle() } /// - /// Gets the result of the scan. + /// Retrieves the results of the Wi-Fi scan, providing a list of discovered Wi-Fi access points (APs). /// /// 3 /// A list of the WiFiAP objects. @@ -264,7 +264,7 @@ static public IEnumerable GetFoundAPs() } /// - /// Gets the result of ScanSpecificAPAsync(string essid) API. + /// Retrieves the results of the scan specific to a particular Wi-Fi access point (AP), providing a list of discovered APs matching the specified ESSID. /// /// 3 /// A list containing the WiFiAP objects. @@ -279,7 +279,7 @@ static public IEnumerable GetFoundSpecificAPs() } /// - /// Gets the result of the BssidScanAsync() API. + /// Retrieves the results of the BSSID scan, providing a list of discovered Wi-Fi access points (APs) based on their BSSID (Basic Service Set Identifier). /// /// 5 /// A list of the WiFiAP objects. @@ -294,7 +294,7 @@ static public IEnumerable GetFoundBssids() } /// - /// Gets the list of Wi-Fi configurations. + /// Retrieves the list of Wi-Fi configurations stored on the device. /// /// 3 /// A list containing the WiFiConfiguration objects. @@ -310,7 +310,7 @@ static public IEnumerable GetWiFiConfigurations() } /// - /// Saves the Wi-Fi configuration of the access point. + /// Saves the Wi-Fi configuration of the access point to the device's storage. /// /// 3 /// The configuration to be stored. @@ -327,7 +327,7 @@ static public void SaveWiFiConfiguration(WiFiConfiguration configuration) } /// - /// Gets the object of the connected WiFiAP. + /// Retrieves the information of the currently connected Wi-Fi access point (AP). /// /// 3 /// The connected Wi-Fi access point (AP) information. @@ -343,7 +343,7 @@ static public WiFiAP GetConnectedAP() } /// - /// Activates the Wi-Fi asynchronously. + /// Activates the Wi-Fi module asynchronously. /// /// 3 /// A task indicating whether the activate method is done or not. @@ -377,7 +377,7 @@ static public Task ActivateWithPickerAsync() } /// - /// Deactivates the Wi-Fi asynchronously. + /// Deactivates the Wi-Fi module asynchronously. /// /// 3 /// A task indicating whether the deactivate method is done or not. @@ -394,7 +394,7 @@ static public Task DeactivateAsync() } /// - /// Starts the scan asynchronously. + /// Initiates a Wi-Fi scan asynchronously. /// /// 3 /// A task indicating whether the scan method is done or not. @@ -428,7 +428,7 @@ static public Task ScanSpecificAPAsync(string essid) } /// - /// Starts BSSID scan asynchronously. + /// Initiates a BSSID scan asynchronously. /// /// /// This method must be called from MainThread. @@ -447,7 +447,7 @@ static public Task BssidScanAsync() } /// - /// Set Auto Scan Mode. + /// Sets the auto scan mode for the Wi-Fi module. /// /// 10 /// http://tizen.org/feature/network.wifi @@ -463,7 +463,7 @@ static public void SetAutoScanMode(WiFiAutoScanMode scanMode) } /// - /// Hidden Ap connect. + /// Connects to a hidden Wi-Fi access point asynchronously. /// /// /// This method must be called from MainThread. @@ -483,7 +483,7 @@ static public Task HiddenAPConnectAsync(string essid, int secType, string passwo } /// - /// Create Specific scan handle. + /// Creates a specific scan handle for the Wi-Fi module. /// /// 9 /// http://tizen.org/feature/network.wifi @@ -499,7 +499,7 @@ static public void CreateSpecificHandle() } /// - /// Destroys Specific scan handle. + /// Destroys the specific scan handle for the Wi-Fi module. /// /// 9 /// http://tizen.org/feature/network.wifi @@ -515,7 +515,7 @@ static public void DestroySpecificHandle() } /// - /// Starts Multi Scan. + /// Starts a multi-frequency scan for available Wi-Fi networks asynchronously. /// /// /// This method must be called from MainThread. diff --git a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiNetwork.cs b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiNetwork.cs index ede4e4de684..86bd447fc8d 100755 --- a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiNetwork.cs +++ b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiNetwork.cs @@ -371,7 +371,7 @@ public string CountryCode } /// - /// Gets all IPv6 addresses of the access point. + /// Retrieves a list of all IPv6 addresses associated with the specified access point. /// /// 3 /// A list of IPv6 addresses of the access point. @@ -411,7 +411,7 @@ public string CountryCode } /// - /// Gets the Bssid list. + /// Retrieves a list of BSSIDs (Basic Service Set Identifiers) associated with access points that have the same SSID (Service Set Identifier) as the current access point. /// /// 5 /// A list of BSSIDs of access points with the same SSID as that of this access point. diff --git a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiSecurity.cs b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiSecurity.cs index d32850424c8..a30369cd545 100755 --- a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiSecurity.cs +++ b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiSecurity.cs @@ -148,7 +148,7 @@ internal WiFiSecurity(Interop.WiFi.SafeWiFiAPHandle apHandle) } /// - /// Sets the passphrase. + /// Configures the passphrase for the Wi-Fi access point (AP). /// /// 3 /// The passphrase of the access point.