public void onSuccess(Object obj) {
   if (this.f10956a.isAdded()) {
     BookingCabInfoResponse bookingCabInfoResponse = (BookingCabInfoResponse) obj;
     if (bookingCabInfoResponse != null && bookingCabInfoResponse.isForceLogout()) {
       new ForceLogoutCommand(true).m13270a(this.f10956a.getActivity());
     }
     if (bookingCabInfoResponse.getStatus().equalsIgnoreCase("SUCCESS")
         && bookingCabInfoResponse.getStateId() != AppState.HOME_PAGE.ordinal()) {
       this.f10956a.m14530p();
       if (bookingCabInfoResponse.getStateId() != 5) {
         this.f10956a.f10988s = bookingCabInfoResponse.getBooking().getBookingId();
       } else if (bookingCabInfoResponse.getBookingId() != null) {
         this.f10956a.f10988s = bookingCabInfoResponse.getBookingId();
       } else {
         bookingCabInfoResponse.getBooking().getBookingId();
       }
       this.f10956a
           .f10969D
           .m13218d()
           .setAppState(AppState.m12881a(bookingCabInfoResponse.getStateId()));
       this.f10956a.m14527n();
       Ola.f11494k = false;
       HashMap hashMap = new HashMap();
       hashMap.put("Local taxi category", this.f10956a.f10980k);
       if (Utils.m14924g(this.f10956a.f10991v)) {
         hashMap.put("Booking city", this.f10956a.f10991v);
       } else {
         hashMap.put("Booking city", "NA");
       }
       Sherlock.m13340a("Ins KP ride booked", hashMap);
       this.f10956a.f10968C.m13564a(this.f10956a.f10988s);
     }
   }
 }
예제 #2
0
 public void onSuccess(Object obj) {
   HashMap hashMap = new HashMap();
   if (Utils.m14924g(this.f9590a.f9624h.m13209c().getCity())) {
     hashMap.put("Booking city", this.f9590a.f9624h.m13209c().getCity());
   } else {
     hashMap.put("Booking city", "NA");
   }
   Sherlock.m13340a("Ins OFD order placed", hashMap);
   OLog.m13313b("Order successful", new Object[0]);
   this.f9590a.m13555f();
   this.f9590a.m13525d(((CheckoutResponse) obj).getId());
 }