Skip to content

Instantly share code, notes, and snippets.

@BenjaminAbt
Last active January 12, 2016 16:07
Show Gist options
  • Save BenjaminAbt/fd24d683d4cd75257e82 to your computer and use it in GitHub Desktop.
Save BenjaminAbt/fd24d683d4cd75257e82 to your computer and use it in GitHub Desktop.
Get all bands from Microsoft Band SDK
// Find all Bands
IBandInfo[ ] allBands = await BandClientManager.Instance.GetBandsAsync();
if( !allBands.Any() )
{
throw new NoBandFoundException();
}
// Use first Band
IBandInfo bandInfo = allBands.First();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment