コード例 #1
0
        public ActivityDTO SaveActivity(Token token, ActivityDTO activity)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new ActivityService(Session, securityInfo, Configuration);

            return(service.SaveActivity(activity));
        }
コード例 #2
0
        public SaveChampionshipResult SaveChampionship(Token token, ChampionshipDTO championship)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new ChampionshipService(Session, securityInfo, Configuration);

            return(service.SaveChampionship(championship));
        }
コード例 #3
0
 private void localizeThread(Token token)
 {
     if (token != null && !string.IsNullOrEmpty(token.Language))
     {
         Thread.CurrentThread.CurrentUICulture = new CultureInfo(token.Language);
     }
 }
コード例 #4
0
        public MyPlaceDTO SaveMyPlace(Token token, MyPlaceDTO place)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new MyPlaceService(Session, securityInfo, Configuration);

            return(service.SaveMyPlace(place));
        }
コード例 #5
0
        public PagedResult <MyPlaceDTO> GetMyPlaces(Token token, MyPlaceSearchCriteria searchCriteria, PartialRetrievingInfo pageInfo)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new MyPlaceService(Session, securityInfo, Configuration);

            return(service.GetMyPlaces(searchCriteria, pageInfo));
        }
コード例 #6
0
        public IList <WeightReperitionReportResultItem> ReportWeightRepetitions(Token token, ReportWeightRepetitionsParams param)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new ReportService(Session, securityInfo, Configuration);

            return(service.ReportWeightRepetitions(param));
        }
コード例 #7
0
        public PagedResult <ExerciseRecordsReportResultItem> ReportExerciseRecords(Token token, ExerciseRecordsParams param, PartialRetrievingInfo pageInfo)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new ReportService(Session, securityInfo, Configuration);

            return(service.ReportExerciseRecords(param, pageInfo));
        }
コード例 #8
0
        public ReservationOperationResult ReservationsOperation(Token token, ReservationsOperationParam param)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new ReservationService(Session, securityInfo, Configuration);

            return(service.ReservationsOperation(param));
        }
コード例 #9
0
        public PaymentBasketDTO PaymentBasketOperation(Token token, PaymentBasketDTO koszyk)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new PaymentService(Session, securityInfo, Configuration);

            return(service.PaymentBasketOperation(koszyk));
        }
コード例 #10
0
        public PagedResult <ScheduleEntryBaseDTO> GetScheduleEntries(Token token, GetScheduleEntriesParam getScheduleEntriesParam, PartialRetrievingInfo retrievingInfo)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new ScheduleEntryService(Session, securityInfo, Configuration);

            return(service.GetScheduleEntries(getScheduleEntriesParam, retrievingInfo));
        }
コード例 #11
0
        public void DeleteCustomer(Token token, CustomerDTO customerDto)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new CustomerService(Session, securityInfo, Configuration);

            service.DeleteCustomer(customerDto);
        }
コード例 #12
0
        public IList <ScheduleEntryBaseDTO> SaveScheduleEntriesRange(Token token, SaveScheduleEntryRangeParam saveScheduleEntryRangeParam)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new ScheduleEntryService(Session, securityInfo, Configuration);

            return(service.SaveScheduleEntryRange(saveScheduleEntryRangeParam));
        }
コード例 #13
0
        public void DeleteScheduleEntry(Token token, ScheduleEntryDTO entry)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new ScheduleEntryService(Session, securityInfo, Configuration);

            service.DeleteScheduleEntry(entry);
        }
コード例 #14
0
        public ScheduleEntryDTO SaveScheduleEntry(Token token, ScheduleEntryDTO entry)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new ScheduleEntryService(Session, securityInfo, Configuration);

            return(service.SaveScheduleEntry(entry));
        }
コード例 #15
0
        public MyTrainingDTO MyTrainingOperation(Token token, MyTrainingOperationParam param)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new SupplementsEngineService(Session, securityInfo, Configuration);

            return(service.MyTrainingOperation(param));
        }
コード例 #16
0
        public CustomerGroupDTO SaveCustomerGroup(Token token, CustomerGroupDTO customerGroup)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new CustomerGroupService(Session, securityInfo, Configuration);

            return(service.SaveCustomerGroup(customerGroup));
        }
コード例 #17
0
        public SupplementCycleDefinitionDTO SupplementsCycleDefinitionOperation(Token token, SupplementsCycleDefinitionOperationParam param)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new SupplementsEngineService(Session, securityInfo, Configuration);

            return(service.SupplementsCycleDefinitionOperation(param));
        }
コード例 #18
0
        public PagedResult <CustomerGroupDTO> GetCustomerGroups(Token token, CustomerGroupSearchCriteria criteria, PartialRetrievingInfo pageInfo)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new CustomerGroupService(Session, securityInfo, Configuration);

            return(service.GetCustomerGroups(criteria, pageInfo));
        }
コード例 #19
0
        public IList <MeasurementsTimeReportResultItem> ReportMeasurementsTime(Token token, ReportMeasurementsTimeParams param)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new ReportService(Session, securityInfo, Configuration);

            return(service.ReportMeasurementsTime(param));
        }
コード例 #20
0
        public void DeleteCustomerGroup(Token token, CustomerGroupDTO group)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new CustomerGroupService(Session, securityInfo, Configuration);

            service.DeleteCustomerGroup(group);
        }
コード例 #21
0
        public void ImportLicence(Token token, string goodLicenceKey)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new LicenceService(Session, securityInfo, Configuration);

            service.ImportLicence(goodLicenceKey);
        }
コード例 #22
0
        public PagedResult <ProductInfoDTO> GetProducts(Token token, GetProductsParam getProductsParam, PartialRetrievingInfo retrievingInfo)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new ProductService(Session, securityInfo, Configuration);

            return(service.GetProducts(getProductsParam, retrievingInfo));
        }
コード例 #23
0
        public MyPlaceDTO MyPlaceOperation(Token token, MyPlaceOperationParam param)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new MyPlaceService(Session, securityInfo, Configuration);

            return(service.MyPlaceOperation(param));
        }
コード例 #24
0
        public ReminderItemDTO SaveReminder(Token token, ReminderItemDTO reminder)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new ReminderService(Session, securityInfo, Configuration);

            return(service.SaveReminder(reminder));
        }
コード例 #25
0
        public FeaturedData GetFeaturedData(Token token, GetFeaturedDataParam param)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new FeaturedItemsService(Session, securityInfo, Configuration);

            return(service.GetFeaturedData(param));
        }
コード例 #26
0
        public PagedResult <ReminderItemDTO> GetReminders(Token token, GetRemindersParam remindersParam, PartialRetrievingInfo pageInfo)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new ReminderService(Session, securityInfo, Configuration);

            return(service.GetReminders(remindersParam, pageInfo));
        }
コード例 #27
0
        public PagedResult <ChampionshipDTO> GetChampionships(Token token, GetChampionshipsCriteria criteria, PartialRetrievingInfo retrievingInfo)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new ChampionshipService(Session, securityInfo, Configuration);

            return(service.GetChampionships(criteria, retrievingInfo));
        }
コード例 #28
0
        public ReminderItemDTO ReminderOperation(Token token, ReminderOperationParam remindersParam)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new ReminderService(Session, securityInfo, Configuration);

            return(service.ReminderOperation(remindersParam));
        }
コード例 #29
0
 public TrainingPlan WorkoutPlanOperation(Token token, WorkoutPlanOperationParam param)
 {
     return(exceptionHandling(token, () =>
     {
         return InternalService.WorkoutPlanOperation(token, param);
     }));
 }
コード例 #30
0
        public void DeleteActivity(Token token, ActivityDTO activity)
        {
            var securityInfo = SecurityManager.EnsureAuthentication(token);
            var service      = new ActivityService(Session, securityInfo, Configuration);

            service.DeleteActivity(activity);
        }