-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOCS-2035: Add example snippets to movement sensor, power sensor, sensor #230
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realized there was also effort to standardize the comments, so I added some small nits. Otherwise, LGTM!
@@ -18,31 +18,72 @@ abstract class MovementSensor extends Resource { | |||
static const Subtype subtype = Subtype(resourceNamespaceRDK, resourceTypeComponent, 'movement_sensor'); | |||
|
|||
/// Obtain the measurements/data specific to this [MovementSensor] | |||
/// If a sensor is not configured to have a measurement or fails to read a piece of data, it will not appear in the readings dictionary. | |||
/// If a sensor is not configured to have a measurement or fails to read a piece of data, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: comment seems long compared to others
Future<Position> position({Map<String, dynamic>? extra}); | ||
|
||
/// Get the current linear velocity as a [Vector3] with x, y, and z axes represented in mm/sec | ||
/// Get the current linear velocity as a [Vector3] with x, y, and z axes represented in mm/sec. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: comment is long compared to others
@purplenicole730 Ooh I was unaware of this standardization. I personally don't see a problem with some comments being longer than others, since some methods require more explanation and some are highly self-explanatory. I'd like to leave those as they are if that's okay? |
@JessamyT |
No description provided.