This repository has been archived by the owner on Jul 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finally got the basic pebble app to connect on WP.
- Loading branch information
Kevin Bost
committed
Sep 26, 2014
1 parent
52564df
commit e33ca6b
Showing
12 changed files
with
117 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,30 @@ | ||
namespace Pebble.WP.ViewModel | ||
using System; | ||
using System.Threading.Tasks; | ||
using Flint.Core.Responses; | ||
|
||
namespace Pebble.WP.ViewModel | ||
{ | ||
public class InfoViewModel : ViewModelBase | ||
{ | ||
|
||
private const string TIME_FORMAT = ""; | ||
|
||
private string _watchTime; | ||
public string WatchTime | ||
{ | ||
get { return _watchTime; } | ||
set { Set(ref _watchTime, value); } | ||
} | ||
|
||
public async Task SetPebbleAsync(Flint.Core.Pebble pebble) | ||
{ | ||
if (pebble == null) throw new ArgumentNullException("pebble"); | ||
|
||
if (pebble.Alive) | ||
{ | ||
TimeResponse timeResponse = await pebble.GetTimeAsync(); | ||
if (timeResponse.Success) | ||
WatchTime = timeResponse.Time.ToString("G"); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.