PolarTrainingSessionApi
public protocol PolarTrainingSessionApi
Protocol defining methods to access training session data.
-
Get training session references for a given period.
Declaration
Swift
func getTrainingSessionReferences( identifier: String, fromDate: Date?, toDate: Date? ) -> Observable<PolarTrainingSessionReference>
Parameters
identifier
The Polar device ID or BT address.
fromDate
The starting date of the period to retrieve training session references from. Optional.
toDate
The ending date of the period to retrieve training session references from. Optional.
Return Value
An Observable emitting
PolarTrainingSessionReference
objects for the specified period. -
Get a specific training session using a reference.
Declaration
Swift
func getTrainingSession( identifier: String, trainingSessionReference: PolarTrainingSessionReference ) -> Single<PolarTrainingSession>
Parameters
identifier
The Polar device ID or BT address.
trainingSessionReference
The reference to the training session to retrieve.
Return Value
A Single emitting a
PolarTrainingSession
containing the session data.