/** * Fetches a <tt>CapitalMarketsOrder</tt> with the provided <tt>objectId</tt> in the background. * * <p>The {@link import com.anypresence.sdk.callbacks.APCallback} callback allows you to run code * in the main UI thread. * * <p>Example: * * <pre>{@code * CapitalMarketsOrder.fetchInBackground("123", new APCallback<CapitalMarketsOrder>() { * * public void finished(CapitalMarketsOrder object, Throwable ex) { * if (ex == null) { * Log.i(TAG, "Object fetched!"); * } else { * Log.e(TAG, "Unable to fetch object!", ex); * } * } * }); * }</pre> * * @see import com.anypresence.sdk.callbacks.APCallback * @param objectId the id of the object * @param futureCallback the callback that handles the result of the request. * @return the cached <tt>CapitalMarketsOrder</tt> if it exists, otherwise, null. */ public static CapitalMarketsOrder fetchInBackground( String objectId, IAPFutureCallback<CapitalMarketsOrder> futureCallback) { return com.anypresence.sdk.APObject.fetchInBackground( objectId, CapitalMarketsOrder.class, futureCallback); }