Ejemplo n.º 1
0
        public void InsertTripPassengerScore(Guid tripId, double passengerScore)
        {
            var tripParam = new TripParam()
            {
                Id             = tripId,
                PassengerScore = passengerScore
            };

            new HttpClientHelper(UserInfoMapping.MapToUserInfo()).Post(HttpUrlHelper.Post(AppConstant.RestUrl, "Trip", "InsertTripPassengerScore"), tripParam);
        }
Ejemplo n.º 2
0
 public void Insert(TripParam tripParam)
 {
     try
     {
         new HttpClientHelper(UserInfoMapping.MapToUserInfo()).Post(HttpUrlHelper.Post(AppConstant.RestUrl, "Trip", "Insert"), tripParam);
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }
Ejemplo n.º 3
0
        public void DriverAccept(Guid tripId, Guid driverId)
        {
            var tripParam = new TripParam()
            {
                Id          = tripId,
                DriverParam = new DriverParam()
                {
                    Id = driverId
                }
            };

            new HttpClientHelper(UserInfoMapping.MapToUserInfo()).Post(HttpUrlHelper.Post(AppConstant.RestUrl, "Trip", "DriverAccept"), tripParam);
        }
Ejemplo n.º 4
0
        public void AddTripState(Guid tripId, TripStatusType tripStatusType)
        {
            var tripParam = new TripParam()
            {
                Id = tripId,
                TripActionParams = new List <TripActionParam>()
                {
                    new TripActionParam()
                    {
                        Status = tripStatusType
                    }
                }
            };

            new HttpClientHelper(UserInfoMapping.MapToUserInfo()).Post(HttpUrlHelper.Post(AppConstant.RestUrl, "Trip", "AddTripState"), tripParam);
        }