@Override public Bundle getBundle() { Bundle b = new Bundle(); b.putInt(C.BUS_REQUEST_TYPE, RequestType.API_CHECKOUT_POST_CLIENT.getCode()); b.putLong(REQUEST_ORDER_ID, orderId); BundleUtil.writeMap(b, REQUEST_CLIENT_FIELDS_VALUES, fieldValues); return b; }
public static ApiOrderPostClientBusRequest fromBundle(Bundle bundle) { return new ApiOrderPostClientBusRequest( bundle.getLong(REQUEST_ORDER_ID), BundleUtil.readMap(bundle, REQUEST_CLIENT_FIELDS_VALUES)); }