Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the SNEKPrepService class.
 /// </summary>
 /// <param name='rootHandler'>
 /// Optional. The http client handler used to handle http transport.
 /// </param>
 /// <param name='handlers'>
 /// Optional. The set of delegating handlers to insert in the http
 /// client pipeline.
 /// </param>
 public SNEKPrepService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers)
     : base(rootHandler, handlers)
 {
     this._conference = new Conference(this);
     this._sessions   = new Sessions(this);
     this._speakers   = new Speakers(this);
     this._baseUri    = new Uri("https://snekprepservice.azurewebsites.net");
 }
Exemplo n.º 2
0
 /// <param name='operations'>
 /// Reference to the MyUniversalWindows10App.ISpeakers.
 /// </param>
 /// <param name='speaker'>
 /// Required.
 /// </param>
 public static object Post(this ISpeakers operations, Speaker speaker)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((ISpeakers)s).PostAsync(speaker);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the SNEKPrepService class.
 /// </summary>
 public SNEKPrepService()
     : base()
 {
     this._conference = new Conference(this);
     this._sessions   = new Sessions(this);
     this._speakers   = new Speakers(this);
     this._baseUri    = new Uri("https://snekprepservice.azurewebsites.net");
 }
Exemplo n.º 4
0
 /// <param name='operations'>
 /// Reference to the MyUniversalWindows10App.ISpeakers.
 /// </param>
 /// <param name='id'>
 /// Required.
 /// </param>
 public static Speaker GetById(this ISpeakers operations, int id)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((ISpeakers)s).GetByIdAsync(id);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Exemplo n.º 5
0
 /// <param name='operations'>
 /// Reference to the MyUniversalWindows10App.ISpeakers.
 /// </param>
 /// <param name='searchTerm'>
 /// Required.
 /// </param>
 public static IList <Speaker> GetBySearchTerm(this ISpeakers operations, string searchTerm)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((ISpeakers)s).GetBySearchTermAsync(searchTerm);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
        public SpeakersPageViewModel(ISpeakers speakers, INavigationService navigationService)
        {
            _speakers          = speakers;
            _navigationService = navigationService;
            Speakers           = new ObservableCollection <Grouping <string, Speaker> >();
            Title       = "Sprecher";
            ShowSpeaker = new DelegateCommand <Speaker>(ShowSpeakerExecute);

            PropertyChanged += OnPropertyChanged;
        }
        public TimeslotsPageViewModel(ITimeslots timeslots, ISpeakers speakers, INavigationService navigationService)
        {
            _timeslots         = timeslots;
            _speakers          = speakers;
            _navigationService = navigationService;
            Title        = "Programm";
            Timeslots    = new ObservableCollection <Grouping <string, Timeslot> >();
            ShowTimeslot = new DelegateCommand <Timeslot>(ShowTimeslotExecute);

            PropertyChanged += OnPropertyChanged;
        }
Exemplo n.º 8
0
 public Sessions(ISlots slots, IRooms rooms, ISpeakers speakers)
 {
     _slots    = slots;
     _rooms    = rooms;
     _speakers = speakers;
 }
Exemplo n.º 9
0
 public Laptop AddSpeakers(ISpeakers speakers)
 {
     _speakers = speakers;
     return(this);
 }
Exemplo n.º 10
0
 public SoundSystem(ISpeakers logitech, ICdPlayer pionner)
 {
     this.logitech = logitech;
     this.pionner  = pionner;
 }
Exemplo n.º 11
0
 public Timeslots(ISpeakers speakers)
 {
     _speakers = speakers;
 }
Exemplo n.º 12
0
        /// <param name='operations'>
        /// Reference to the MyUniversalWindows10App.ISpeakers.
        /// </param>
        /// <param name='id'>
        /// Required.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <Speaker> GetByIdAsync(this ISpeakers operations, int id, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <MyUniversalWindows10App.Models.Speaker> result = await operations.GetByIdWithOperationResponseAsync(id, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }
Exemplo n.º 13
0
        /// <param name='operations'>
        /// Reference to the MyUniversalWindows10App.ISpeakers.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <IList <Speaker> > GetAsync(this ISpeakers operations, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <System.Collections.Generic.IList <MyUniversalWindows10App.Models.Speaker> > result = await operations.GetWithOperationResponseAsync(cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }
Exemplo n.º 14
0
        /// <param name='operations'>
        /// Reference to the MyUniversalWindows10App.ISpeakers.
        /// </param>
        /// <param name='id'>
        /// Required.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <object> DeleteAsync(this ISpeakers operations, int id, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <object> result = await operations.DeleteWithOperationResponseAsync(id, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }
Exemplo n.º 15
0
 public Sessions(ISlots slots, IRooms rooms, ISpeakers speakers)
 {
     _slots = slots;
     _rooms = rooms;
     _speakers = speakers;
 }