title: How to invoke a return value method with final class object as paremeter in Android ?
body: <p>I'm new in Android and I've been trying to create a method to invoke another method (with parameters and return a List in SignalR api) that run a method in asp.net web api but I could't.</p>
  
  <p>Method that is not recognize Invoke is: </p>
  
  <pre><code>List&lt;ChatUser&gt; retorno = hubProxy.invoke&lt;ArrayList&lt;ChatUser&gt;&gt;("MapList",latitude, longitude); 
  </code></pre>
  
  <p>Below is method of Signalr class imported:</p>
  
  <pre><code>public &lt;E&gt; SignalRFuture&lt;E&gt; invoke(final Class&lt;E&gt; resultClass, final String method, Object... args) { ... });
  </code></pre>
  
  <p>In asp.net the method I use and works is:</p>
  
  <pre><code>IEnumerable&lt;ChatUser&gt; retorno = await hubProxy.Invoke&lt;IEnumerable&lt;ChatUser&gt;&gt;("MapList", latitude, longitude);
  </code></pre>
  
  <p>Web api method target:</p>
  
  <pre><code>public IEnumerable&lt;ChatUser&gt; MapList(double latitude, double longitude) {
        var mapItens = from i in userList
                 where (i.UserType == "O" &amp;&amp; i.Latitude &gt; 0 &amp;&amp;
                        ((latitude - i.Latitude) &lt; 0.600 || (longitude - i.Longitude) &lt; 0.600))
                 select i;
        return mapItens;
  }
  </code></pre>