Пример #1
0
        // Convenience

        /*! @brief a convenience method to read HKQuantityTypeIdentifierStepCount quantity samples */
        public void ReadSteps(DateTimeOffset startDate, DateTimeOffset endDate, ReceivedQuantity handler)
        {
            this.receivedQuantityHandlers[HKDataType.HKQuantityTypeIdentifierStepCount] = handler;
            this.ReadQuantity(HKDataType.HKQuantityTypeIdentifierStepCount, startDate, endDate, true);
        }
Пример #2
0
        // ------------------------------------------------------------------------------
        // Delegate Interface
        // ------------------------------------------------------------------------------

        // Quantity types

        /*! @brief              Read quantity samples & return the sum.
         *      @details
         *      @param dataType		The datatype to read.
         *      @param startDate	The date to start reading samples from.
         *      @param endDate		The end date to limit samples to.
         *      @param handler		Called when the function finishes executing.
         */
        public void ReadCombinedQuantitySamples(HKDataType dataType, DateTimeOffset startDate, DateTimeOffset endDate, ReceivedQuantity handler)
        {
            this.receivedQuantityHandlers[dataType] = handler;
            this.ReadQuantity(dataType, startDate, endDate, true);
        }