public ActivityDTO SaveActivity(Token token, ActivityDTO activity) { var securityInfo = SecurityManager.EnsureAuthentication(token); var service = new ActivityService(Session, securityInfo, Configuration); return(service.SaveActivity(activity)); }
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); } }
public MyPlaceDTO SaveMyPlace(Token token, MyPlaceDTO place) { var securityInfo = SecurityManager.EnsureAuthentication(token); var service = new MyPlaceService(Session, securityInfo, Configuration); return(service.SaveMyPlace(place)); }
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)); }
public IList <WeightReperitionReportResultItem> ReportWeightRepetitions(Token token, ReportWeightRepetitionsParams param) { var securityInfo = SecurityManager.EnsureAuthentication(token); var service = new ReportService(Session, securityInfo, Configuration); return(service.ReportWeightRepetitions(param)); }
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)); }
public ReservationOperationResult ReservationsOperation(Token token, ReservationsOperationParam param) { var securityInfo = SecurityManager.EnsureAuthentication(token); var service = new ReservationService(Session, securityInfo, Configuration); return(service.ReservationsOperation(param)); }
public PaymentBasketDTO PaymentBasketOperation(Token token, PaymentBasketDTO koszyk) { var securityInfo = SecurityManager.EnsureAuthentication(token); var service = new PaymentService(Session, securityInfo, Configuration); return(service.PaymentBasketOperation(koszyk)); }
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)); }
public void DeleteCustomer(Token token, CustomerDTO customerDto) { var securityInfo = SecurityManager.EnsureAuthentication(token); var service = new CustomerService(Session, securityInfo, Configuration); service.DeleteCustomer(customerDto); }
public IList <ScheduleEntryBaseDTO> SaveScheduleEntriesRange(Token token, SaveScheduleEntryRangeParam saveScheduleEntryRangeParam) { var securityInfo = SecurityManager.EnsureAuthentication(token); var service = new ScheduleEntryService(Session, securityInfo, Configuration); return(service.SaveScheduleEntryRange(saveScheduleEntryRangeParam)); }
public void DeleteScheduleEntry(Token token, ScheduleEntryDTO entry) { var securityInfo = SecurityManager.EnsureAuthentication(token); var service = new ScheduleEntryService(Session, securityInfo, Configuration); service.DeleteScheduleEntry(entry); }
public ScheduleEntryDTO SaveScheduleEntry(Token token, ScheduleEntryDTO entry) { var securityInfo = SecurityManager.EnsureAuthentication(token); var service = new ScheduleEntryService(Session, securityInfo, Configuration); return(service.SaveScheduleEntry(entry)); }
public MyTrainingDTO MyTrainingOperation(Token token, MyTrainingOperationParam param) { var securityInfo = SecurityManager.EnsureAuthentication(token); var service = new SupplementsEngineService(Session, securityInfo, Configuration); return(service.MyTrainingOperation(param)); }
public CustomerGroupDTO SaveCustomerGroup(Token token, CustomerGroupDTO customerGroup) { var securityInfo = SecurityManager.EnsureAuthentication(token); var service = new CustomerGroupService(Session, securityInfo, Configuration); return(service.SaveCustomerGroup(customerGroup)); }
public SupplementCycleDefinitionDTO SupplementsCycleDefinitionOperation(Token token, SupplementsCycleDefinitionOperationParam param) { var securityInfo = SecurityManager.EnsureAuthentication(token); var service = new SupplementsEngineService(Session, securityInfo, Configuration); return(service.SupplementsCycleDefinitionOperation(param)); }
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)); }
public IList <MeasurementsTimeReportResultItem> ReportMeasurementsTime(Token token, ReportMeasurementsTimeParams param) { var securityInfo = SecurityManager.EnsureAuthentication(token); var service = new ReportService(Session, securityInfo, Configuration); return(service.ReportMeasurementsTime(param)); }
public void DeleteCustomerGroup(Token token, CustomerGroupDTO group) { var securityInfo = SecurityManager.EnsureAuthentication(token); var service = new CustomerGroupService(Session, securityInfo, Configuration); service.DeleteCustomerGroup(group); }
public void ImportLicence(Token token, string goodLicenceKey) { var securityInfo = SecurityManager.EnsureAuthentication(token); var service = new LicenceService(Session, securityInfo, Configuration); service.ImportLicence(goodLicenceKey); }
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)); }
public MyPlaceDTO MyPlaceOperation(Token token, MyPlaceOperationParam param) { var securityInfo = SecurityManager.EnsureAuthentication(token); var service = new MyPlaceService(Session, securityInfo, Configuration); return(service.MyPlaceOperation(param)); }
public ReminderItemDTO SaveReminder(Token token, ReminderItemDTO reminder) { var securityInfo = SecurityManager.EnsureAuthentication(token); var service = new ReminderService(Session, securityInfo, Configuration); return(service.SaveReminder(reminder)); }
public FeaturedData GetFeaturedData(Token token, GetFeaturedDataParam param) { var securityInfo = SecurityManager.EnsureAuthentication(token); var service = new FeaturedItemsService(Session, securityInfo, Configuration); return(service.GetFeaturedData(param)); }
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)); }
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)); }
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); })); }
public void DeleteActivity(Token token, ActivityDTO activity) { var securityInfo = SecurityManager.EnsureAuthentication(token); var service = new ActivityService(Session, securityInfo, Configuration); service.DeleteActivity(activity); }