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); }
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); } }
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); }
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); }