Ejemplo n.º 1
0
    public void onPushStatusSuccess()
    {
        Debug.Log("GamePotEventListener::onPushStatusSuccess()");

        if (cbPushStatusEnable != null)
        {
            cbPushStatusEnable(true);
            cbPushStatusEnable = null;
        }
        else
        {
            if (GamePotInterface != null)
            {
                GamePotInterface.onPushStatusSuccess();
            }
        }
    }
Ejemplo n.º 2
0
    public void onDeleteLinkingSuccess()
    {
        Debug.Log("GamePotEventListener::onDeleteLinkSuccess()");

        if (cbDeleteLinking != null)
        {
            cbDeleteLinking(true);
            cbDeleteLinking = null;
        }
        else
        {
            if (GamePotInterface != null)
            {
                GamePotInterface.onDeleteLinkingSuccess();
            }
        }
    }
Ejemplo n.º 3
0
    public void onCouponSuccess(string result)
    {
        Debug.Log("GamePotEventListener::onCouponSuccess() " + result);

        if (cbCoupon != null)
        {
            cbCoupon(true);
            cbCoupon = null;
        }
        else
        {
            if (GamePotInterface != null)
            {
                GamePotInterface.onCouponSuccess();
            }
        }
    }
Ejemplo n.º 4
0
    public void onDeleteMemberSuccess()
    {
        Debug.Log("GamePotEventListener::onDeleteMemberSuccess()");

        if (cbDeleteMember != null)
        {
            cbDeleteMember(true);
            cbDeleteMember = null;
        }
        else
        {
            if (GamePotInterface != null)
            {
                GamePotInterface.onDeleteMemberSuccess();
            }
        }
    }
Ejemplo n.º 5
0
    public void onLogoutSuccess(string result)
    {
        Debug.Log("GamePotEventListener::onLogOutSuccess()");

        if (cbLogout != null)
        {
            cbLogout(true);
            cbLogout = null;
        }
        else
        {
            if (GamePotInterface != null)
            {
                GamePotInterface.onLogoutSuccess();
            }
        }
    }
Ejemplo n.º 6
0
    public void onPushStatusFailure(string result)
    {
        Debug.Log("GamePotEventListener::onPushStatusFailure()" + result);
        NError error = JsonMapper.ToObject <NError>(result);

        if (cbPushStatusEnable != null)
        {
            cbPushStatusEnable(false, error);
            cbPushStatusEnable = null;
        }
        else
        {
            if (GamePotInterface != null)
            {
                GamePotInterface.onPushStatusFailure(error);
            }
        }
    }
Ejemplo n.º 7
0
    public void onDeleteLinkingFailure(string result)
    {
        Debug.Log("GamePotEventListener::onDeleteLinkFailure() - " + result);
        NError error = JsonMapper.ToObject <NError>(result);

        if (cbDeleteLinking != null)
        {
            cbDeleteLinking(false, error);
            cbDeleteLinking = null;
        }
        else
        {
            if (GamePotInterface != null)
            {
                GamePotInterface.onDeleteLinkingFailure(error);
            }
        }
    }
Ejemplo n.º 8
0
    public void onCouponFailure(string result)
    {
        Debug.Log("GamePotEventListener::onCouponFailure() : " + result);
        NError error = JsonMapper.ToObject <NError>(result);

        if (cbCoupon != null)
        {
            cbCoupon(false, error);
            cbCoupon = null;
        }
        else
        {
            if (GamePotInterface != null)
            {
                GamePotInterface.onCouponFailure(error);
            }
        }
    }
Ejemplo n.º 9
0
 /// <summary>
 /// Set Push AD Status
 /// </summary>
 /// <param name="adPushEnable"></param>
 /// <param name="cbPushADEnable">Callback Function</param>
 public static void setPushADStatus(bool adPushEnable, GamePotCallbackDelegate.CB_Common cbPushADEnable)
 {
     // Debug.Log("[GPUnity][Call] setPushADStatus : " + adPushEnable);
     GamePotEventListener.cbPushADEnable = cbPushADEnable;
     setPushADStatus(adPushEnable);
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Set Push Status at once
 /// </summary>
 /// <param name="pushEnable"></param>
 /// <param name="nightPushEnable"></param>
 /// <param name="adPushEnable"></param>
 /// <param name="cbPushStatusEnable">Callback Function</param>
 public static void setPushStatus(bool pushEnable, bool nightPushEnable, bool adPushEnable, GamePotCallbackDelegate.CB_Common cbPushStatusEnable)
 {
     // Debug.Log("[GPUnity][Call] setPush : " + pushEnable + " NightPush : " + nightPushEnable + " adPush : " + adPushEnable);
     GamePotEventListener.cbPushStatusEnable = cbPushStatusEnable;
     setPushStatus(pushEnable, nightPushEnable, adPushEnable);
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Push Enable
 /// </summary>
 /// <param name="pushEnable"></param>
 /// <param name="cbPushEnable">Callback Function</param>
 public static void setPushStatus(bool pushEnable, GamePotCallbackDelegate.CB_Common cbPushEnable)
 {
     GamePotEventListener.cbPushEnable = cbPushEnable;
     setPushStatus(pushEnable);
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Delete Linking (callback delegate)
 /// </summary>
 /// <param name="linkType"></param>
 /// <param name="cbDeleteLinking">Callback Function</param>
 public static void deleteLinking(NCommon.LinkingType linkType, GamePotCallbackDelegate.CB_Common cbDeleteLinking)
 {
     GamePotEventListener.cbDeleteLinking = cbDeleteLinking;
     deleteLinking(linkType);
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Coupon (callback delegate)
 /// </summary>
 /// <param name="couponNumber"></param>
 /// <param name="userData"></param>
 /// <param name="cbCoupon">Callback function</param>
 public static void coupon(string couponNumber, string userData, GamePotCallbackDelegate.CB_Common cbCoupon)
 {
     GamePotEventListener.cbCoupon = cbCoupon;
     coupon(couponNumber, userData);
 }
Ejemplo n.º 14
0
 /// <summary>
 /// Logout (callback delegate)
 /// </summary>
 /// <param name="cbPurchase"></param>
 public static void logout(GamePotCallbackDelegate.CB_Common cbLogout)
 {
     GamePotEventListener.cbLogout = cbLogout;
     logout();
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Delete Member (callback delegate)
 /// </summary>
 /// <param name="cbDeleteMember"></param>
 public static void deleteMember(GamePotCallbackDelegate.CB_Common cbDeleteMember)
 {
     GamePotEventListener.cbDeleteMember = cbDeleteMember;
     deleteMember();
 }