public void RegisterPush(GamebaseRequest.Push.PushConfiguration pushConfiguration, int handle) { GamebaseErrorNotifier.FireNotSupportedAPI( this, "RegisterPush", GamebaseCallbackHandler.GetCallback <GamebaseCallback.ErrorDelegate>(handle)); }
virtual public void RegisterPush(GamebaseRequest.Push.PushConfiguration pushConfiguration, int handle) { string jsonString = null; if (null != pushConfiguration) { jsonString = JsonMapper.ToJson(pushConfiguration); } string jsonData = JsonMapper.ToJson(new UnityMessage(GamebasePush.PUSH_API_REGISTER_PUSH, handle: handle, jsonData: jsonString, gameObjectName: GamebaseUnitySDK.ObjectName, requestMethodName: "OnAsyncEvent")); messageSender.GetAsync(jsonData); }
public void RegisterPush(GamebaseRequest.Push.PushConfiguration pushConfiguration, GamebaseCallback.ErrorDelegate callback) { int handle = GamebaseCallbackHandler.RegisterCallback(callback); push.RegisterPush(pushConfiguration, handle); }