Ejemplo n.º 1
0
        public async Task <List <SessionDTO> > GetAllSessions()
        {
            //SessionsLink.SetDay(1);
            var sessionsResponse = await _HttpClient.SendAsync(SessionsLink.BuildRequestMessage());

            sessionsResponse.EnsureSuccessStatusCode();
            var collection = await SessionsLink.ParseResponseAsync(sessionsResponse);

            return(SessionsLink.ParseSessions(collection));
        }
Ejemplo n.º 2
0
        public async Task <List <SessionDTO> > GetSessionsBySpeaker(int speakerid)
        {
            var sessionsResponse = await _HttpClient.SendAsync(SessionLink.BuildRequestMessage(new Dictionary <string, object> {
                { "speakerid", speakerid }
            }));

            sessionsResponse.EnsureSuccessStatusCode();
            var collection = await SessionsLink.ParseResponseAsync(sessionsResponse);

            return(SessionsLink.ParseSessions(collection));
        }