示例#1
0
        public void CreateTeamInvitationAsync(Action <string> success, Action <HealthGraphException> failure, StreetTeamInvitationsModel invitationToCreate)
        {
            var request = PrepareTeamInvitationCreateRequest(invitationToCreate);

            _tokenManager.ExecuteCreateAsync(request, success, failure);
        }
        public void CreateMeasurement(Action <string> success, Action <HealthGraphException> failure, GeneralMeasurementsNewModel measurementToCreate)
        {
            var request = PrepareMeasurementCreateRequest(measurementToCreate);

            _tokenManager.ExecuteCreateAsync(request, success, failure);
        }
        public void CreateWeightAsync(Action <string> success, Action <HealthGraphException> failure, WeightNewModel weightToCreate)
        {
            var request = PrepareWeightCreateRequest(weightToCreate);

            _tokenManager.ExecuteCreateAsync(request, success, failure);
        }
        public void CreateSleepAsync(Action <string> success, Action <HealthGraphException> failure, SleepNewModel sleepToCreate)
        {
            var request = PrepareSleepCreateRequest(sleepToCreate);

            _tokenManager.ExecuteCreateAsync(request, success, failure);
        }
示例#5
0
        public void CreateNutritionAsync(Action <string> success, Action <HealthGraphException> failure, NutritionNewModel nutritionToCreate)
        {
            var request = PrepareNutritionCreateRequest(nutritionToCreate);

            _tokenManager.ExecuteCreateAsync(request, success, failure);
        }
示例#6
0
        public void CreateActivityAsync(Action <string> success, Action <HealthGraphException> failure, BackgroundActivitiesNewModel activityToCreate)
        {
            var request = PrepareActivityCreateRequest(activityToCreate);

            _tokenManager.ExecuteCreateAsync(request, success, failure);
        }