From 1cf48d4eaf011cb3dd999291df577f5a2831f11c Mon Sep 17 00:00:00 2001 From: Peter Bakondy Date: Thu, 22 Sep 2016 11:15:03 +0200 Subject: [PATCH] Harmonize casing --- .gitignore | 3 +++ README.md | 2 +- src/wp/Sim.cs | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..625212a --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules/ +.DS_Store +npm-debug.log diff --git a/README.md b/README.md index 15fab0f..bd6efd0 100644 --- a/README.md +++ b/README.md @@ -226,7 +226,7 @@ Additional return values: * `isCellularDataEnabled`: Boolean - indicates whether the network is cellular data enabled * `isCellularDataRoamingEnabled`: Boolean - indicates whether the network allows data roaming -* `IsNetworkAvailable`: Boolean - indicates whether the network is available +* `isNetworkAvailable`: Boolean - indicates whether the network interface is available * `isWiFiEnabled`: Boolean - indicates whether the network is Wi-Fi enabled diff --git a/src/wp/Sim.cs b/src/wp/Sim.cs index afaca87..d6e5c9d 100644 --- a/src/wp/Sim.cs +++ b/src/wp/Sim.cs @@ -1,5 +1,7 @@ // DeviceNetworkInformation // https://msdn.microsoft.com/en-us/library/windows/apps/microsoft.phone.net.networkinformation.devicenetworkinformation(v=vs.105).aspx +// +// TODO http://stackoverflow.com/a/21879531 using System; using Microsoft.Phone.Net.NetworkInformation; @@ -11,7 +13,7 @@ public class Sim : BaseCommand public void getSimInfo(string notused) { - string res = String.Format("\"carrierName\":\"{0}\",\"countryCode\":\"\",\"mcc\":\"\",\"mnc\":\"\",\"isCellularDataEnabled\":\"{1}\",\"isCellularDataRoamingEnabled\":\"{2}\",\"IsNetworkAvailable\":\"{3}\",\"isWiFiEnabled\":\"{4}\"", + string res = String.Format("\"carrierName\":\"{0}\",\"countryCode\":\"\",\"mcc\":\"\",\"mnc\":\"\",\"isCellularDataEnabled\":\"{1}\",\"isCellularDataRoamingEnabled\":\"{2}\",\"isNetworkAvailable\":\"{3}\",\"isWiFiEnabled\":\"{4}\"", this.CellularMobileOperator, this.IsCellularDataEnabled, this.IsCellularDataRoamingEnabled,