package com.backendless;

import com.backendless.async.callback.AsyncCallback;

import java.util.Map;

/**
 * Created by scadge on 6/23/14.
 */
public class Events
{
  private static final String EVENTS_MANAGER_SERVER_ALIAS = "com.backendless.services.servercode.EventHandler";

  private static final Events instance = new Events();

  static Events getInstance()
  {
    return instance;
  }

  public void dispatch( String eventName, Map eventArgs, AsyncCallback callback )
  {
    Invoker.invokeAsync( EVENTS_MANAGER_SERVER_ALIAS, "dispatchEvent", new Object[] { Backendless.getApplicationId(), Backendless.getVersion(), eventName, eventArgs }, callback );
  }
}

@@ -388,16 +388,45 @@
 e;%0A  %7D%0A%0A
+  private Events()%0A  %7B%0A%0A  %7D%0A%0A
   public
@@ -487,16 +487,21 @@
 Callback
+%3CMap%3E
  callbac

add Map generic to Events