Exemplo n.º 1
0
        public async Task <LoginResponse> LoginUser(LoginRequest model, ServiceType ServiceType, string Authkey)
        {
            LoginResponse response = new LoginResponse();

            var result = await _objUtility.AllApiInterface(ApiRouteConstant.UserLogin, (int)Method.POST, model, ServiceType, Authkey);

            if (result != null)
            {
                response = JsonConvert.DeserializeObject <LoginResponse>(result);
            }
            return(response);
        }
Exemplo n.º 2
0
        public async Task <EventResponse> GetEnrolledEventsList(EventRequest model, ServiceType ServiceType, string Authkey)
        {
            EventResponse response = new EventResponse();

            var result = await _objUtility.AllApiInterface(ApiRouteConstant.PurchasedEvents, (int)Method.POST, model, ServiceType, Authkey);

            if (result != null)
            {
                response = JsonConvert.DeserializeObject <EventResponse>(result);
            }
            return(response);
        }
Exemplo n.º 3
0
        public async Task <NotificationResponse> GetEventList(NotificationRequest model, ServiceType ServiceType, string Authkey)
        {
            NotificationResponse response = new NotificationResponse();

            var result = await _objUtility.AllApiInterface(ApiRouteConstant.Notifications, (int)Method.POST, model, ServiceType, Authkey);

            if (result != null)
            {
                response = JsonConvert.DeserializeObject <NotificationResponse>(result);
            }
            return(response);
        }