mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-08-01 17:38:40 +00:00
Comments & Dictionaries
Reformatted comments to work in VSCode and converted `dict.get(:key)` to `dict[:key]` syntax as its nicer.
This commit is contained in:
@ -45,10 +45,10 @@ class BackgroundServiceDelegate extends System.ServiceDelegate {
|
||||
//! Called on completion of an activity.
|
||||
//!
|
||||
//! @param activity Specified as a Dictionary with two items.<br>
|
||||
//! {<br>
|
||||
//!   :sport as Activity.Sport<br>
|
||||
//!   :subSport as Activity.SubSport<br>
|
||||
//! }
|
||||
//! `{`<br>
|
||||
//!   `:sport as Activity.Sport`<br>
|
||||
//!   `:subSport as Activity.SubSport`<br>
|
||||
//! `}`
|
||||
//
|
||||
function onActivityCompleted(
|
||||
activity as {
|
||||
@ -101,8 +101,8 @@ class BackgroundServiceDelegate extends System.ServiceDelegate {
|
||||
//! @param sub_activity Activity.SubSport
|
||||
//
|
||||
private function doUpdate(
|
||||
activity as Lang.Number or Null,
|
||||
sub_activity as Lang.Number or Null
|
||||
activity as Lang.Number?,
|
||||
sub_activity as Lang.Number?
|
||||
) {
|
||||
// System.println("BackgroundServiceDelegate onTemporalEvent(): Making API call.");
|
||||
var position = Position.getInfo();
|
||||
|
Reference in New Issue
Block a user