Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
Harmonize casing
Browse files Browse the repository at this point in the history
  • Loading branch information
pbakondy committed Sep 22, 2016
1 parent d17e45b commit 1cf48d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
.DS_Store
npm-debug.log
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
4 changes: 3 additions & 1 deletion src/wp/Sim.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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,
Expand Down

0 comments on commit 1cf48d4

Please sign in to comment.