예제 #1
0
        virtual protected void Init()
        {
            messageSender.Initialize(CLASS_NAME);

            DelegateManager.AddDelegate(GamebaseWebview.WEBVIEW_API_SHOW_WEBVIEW, DelegateManager.SendErrorDelegateOnce, OnCloseCallback);
            DelegateManager.AddDelegate(GamebaseWebview.WEBVIEW_API_SCHEME_EVENT, DelegateManager.SendGamebaseDelegate <string>);
        }
예제 #2
0
        virtual protected void Init()
        {
            messageSender.Initialize(CLASS_NAME);

            DelegateManager.AddDelegate(GamebasePush.PUSH_API_REGISTER_PUSH, DelegateManager.SendErrorDelegateOnce);
            DelegateManager.AddDelegate(GamebasePush.PUSH_API_QUERY_PUSH, DelegateManager.SendGamebaseDelegateOnce <GamebaseResponse.Push.PushConfiguration>);
        }
예제 #3
0
        virtual protected void Init()
        {
            messageSender.Initialize(CLASS_NAME);

            DelegateManager.AddDelegate(Gamebase.GAMEBASE_API_INITIALIZE, DelegateManager.SendGamebaseDelegateOnce <GamebaseResponse.Launching.LaunchingInfo>);
            DelegateManager.AddDelegate(Gamebase.GAMEBASE_API_ADD_SERVER_PUSH_EVENT, DelegateManager.SendDataDelegate <GamebaseResponse.SDK.ServerPushMessage>);
            DelegateManager.AddDelegate(Gamebase.GAMEBASE_API_ADD_OBSERVER, DelegateManager.SendDataDelegate <GamebaseResponse.SDK.ObserverMessage>);
        }
예제 #4
0
        virtual protected void Init()
        {
            messageSender.Initialize(CLASS_NAME);

            DelegateManager.AddDelegate(GamebasePurchase.PURCHASE_API_REQUEST_PURCHASE, DelegateManager.SendGamebaseDelegateOnce <GamebaseResponse.Purchase.PurchasableReceipt>);
            DelegateManager.AddDelegate(GamebasePurchase.PURCHASE_API_REQUEST_ITEM_LIST_OF_NOT_CONSUMED, DelegateManager.SendGamebaseDelegateOnce <List <GamebaseResponse.Purchase.PurchasableReceipt> >);
            DelegateManager.AddDelegate(GamebasePurchase.PURCHASE_API_REQUEST_RETYR_TRANSACTION, DelegateManager.SendGamebaseDelegateOnce <GamebaseResponse.Purchase.PurchasableRetryTransactionResult>);
            DelegateManager.AddDelegate(GamebasePurchase.PURCHASE_API_REQUEST_ITEM_LIST_PURCHASABLE, DelegateManager.SendGamebaseDelegateOnce <List <GamebaseResponse.Purchase.PurchasableItem> >);
            DelegateManager.AddDelegate(GamebasePurchase.PURCHASE_API_REQUEST_ITEM_LIST_AT_AP_CONSOLE, DelegateManager.SendGamebaseDelegateOnce <List <GamebaseResponse.Purchase.PurchasableItem> >);
        }
        virtual protected void Init()
        {
            messageSender.Initialize(CLASS_NAME);

            DelegateManager.AddDelegate(GamebaseAuth.AUTH_API_LOGIN, DelegateManager.SendGamebaseDelegateOnce <GamebaseResponse.Auth.AuthToken>);
            DelegateManager.AddDelegate(GamebaseAuth.AUTH_API_LOGIN_ADDITIONAL_INFO, DelegateManager.SendGamebaseDelegateOnce <GamebaseResponse.Auth.AuthToken>);
            DelegateManager.AddDelegate(GamebaseAuth.AUTH_API_LOGIN_CREDENTIAL_INFO, DelegateManager.SendGamebaseDelegateOnce <GamebaseResponse.Auth.AuthToken>, OnLogin);
            DelegateManager.AddDelegate(GamebaseAuth.AUTH_API_LOGIN_FOR_LAST_LOGGED_IN_PROVIDER, DelegateManager.SendGamebaseDelegateOnce <GamebaseResponse.Auth.AuthToken>);
            DelegateManager.AddDelegate(GamebaseAuth.AUTH_API_ADD_MAPPING, DelegateManager.SendGamebaseDelegateOnce <GamebaseResponse.Auth.AuthToken>);
            DelegateManager.AddDelegate(GamebaseAuth.AUTH_API_ADD_MAPPING_CREDENTIAL_INFO, DelegateManager.SendGamebaseDelegateOnce <GamebaseResponse.Auth.AuthToken>, OnAddMapping);
            DelegateManager.AddDelegate(GamebaseAuth.AUTH_API_ADD_MAPPING_ADDITIONAL_INFO, DelegateManager.SendGamebaseDelegateOnce <GamebaseResponse.Auth.AuthToken>);
            DelegateManager.AddDelegate(GamebaseAuth.AUTH_API_ISSUE_TRANSFER_KEY, DelegateManager.SendGamebaseDelegateOnce <GamebaseResponse.Auth.TransferKeyInfo>);
            DelegateManager.AddDelegate(GamebaseAuth.AUTH_API_REQUEST_TRANSFER, DelegateManager.SendGamebaseDelegateOnce <GamebaseResponse.Auth.AuthToken>);
            DelegateManager.AddDelegate(GamebaseAuth.AUTH_API_REMOVE_MAPPING, DelegateManager.SendErrorDelegateOnce, OnRemoveMapping);
            DelegateManager.AddDelegate(GamebaseAuth.AUTH_API_LOGOUT, DelegateManager.SendErrorDelegateOnce, OnLogout);
            DelegateManager.AddDelegate(GamebaseAuth.AUTH_API_WITH_DRAW_ACCOUT, DelegateManager.SendErrorDelegateOnce, OnWithdraw);
        }
예제 #6
0
        public void OnAsyncEvent(string jsonString)
        {
            GamebaseLog.Debug(string.Format("jsonString : {0}", jsonString), this, "OnAsyncEvent");

            NativeMessage message = JsonMapper.ToObject <NativeMessage>(jsonString);

            DelegateManager.DelegateData delegateData = DelegateManager.GetDelegate(message.scheme);

            if (null != delegateData)
            {
                if (null != delegateData.pluginEventDelegate)
                {
                    delegateData.pluginEventDelegate(message);
                }
                if (null != delegateData.eventDelegate)
                {
                    delegateData.eventDelegate(message);
                }
            }
        }
예제 #7
0
        virtual protected void Init()
        {
            messageSender.Initialize(CLASS_NAME);

            DelegateManager.AddDelegate(GamebaseLaunching.LAUNCHING_API_ADD_UPDATE_STATUSLISTENER, DelegateManager.SendDataDelegate <GamebaseResponse.Launching.LaunchingStatus>);
        }
        virtual protected void Init()
        {
            messageSender.Initialize(CLASS_NAME);

            DelegateManager.AddDelegate(GamebaseUtil.UTIL_API_SHOW_ALERT_EVENT, DelegateManager.SendVoidDelegateOnce);
        }
        virtual protected void Init()
        {
            messageSender.Initialize(CLASS_NAME);

            DelegateManager.AddDelegate(GamebaseNetwork.NETWORK_API_ADD_ON_CHANGED_STATUS_LISTENER, OnAddOnChangedStatusListener);
        }