Пример #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));
        }
 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));
        }
 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);
        }