private void HandleStopTrip(MQBatchRequest batchRequest)
        {
            Trip currTrip = CacheImplementor.GetTrip(batchRequest.MessageData.ToString());

            foreach (KeyValuePair <int, TripPerson> kv in currTrip.PassengarInfo)
            {
                LoginResponse lr = CacheImplementor.GetUserInfo(kv.Value.ID.ToString());
                if (lr != null && !String.IsNullOrEmpty(lr.FirebaseID))
                {
                    PushCommunication.SendNotification(lr.FirebaseID, "TRIP STARTED",
                                                       String.Format("Your trip had been started and Driver: {0} Number: {1] is assigned",
                                                                     currTrip.DriverData.DriverName, currTrip.DriverData.DriverPhoneNumber));
                }
            }
        }
Exemple #2
0
 public Trip GetTripInfo(string TripID)
 {
     return(CacheImplementor.GetTrip(TripID));
 }