title: Delphi Android consuming Android API - Handpoint
body: <p>I need some help with accessing <code>JObject</code> methods. </p>
  
  <p>This is the API Interface converted with Java2OP:</p>
  
  <pre><code>JTransactionType = interface;//com.handpoint.api.TransactionType
  
  JTransactionResultClass = interface(JObjectClass)
  ['{A5821CF6-DC08-4DDA-BD34-DCF5E8BCA6CC}']
  {class} function getCustomerReceipt: JString; cdecl;//Deprecated
  end;
  
  [JavaSignature('com/handpoint/api/TransactionResult')]
  JTransactionResult = interface(JObject)
  ['{3BFB1C2D-0B3E-4C5D-9A8D-7A92C3F4F45E}']
  end;
  TJTransactionResult = class(TJavaGenericImport&lt;JTransactionResultClass, JTransactionResult&gt;) end;
  </code></pre>
  
  <p>The following method triggers as a response from the API:</p>
  
  <pre><code>procedure TApiResponse.endOfTransaction(P1: JTransactionResult; P2: JDevice);
  begin
    fMessage := JStringToString(TJTransactionResult.JavaClass.getCustomerReceipt);
  end;
  </code></pre>
  
  <p>I am looking to call <code>P1.getCustomerReceipt()</code>, but I am not sure how to cast or access the class method. </p>