示例#1
0
 public void snsLoginFailure(string data)
 {
     if (OnSNSEvent != null && OnSNSEvent.GetInvocationList().Length > 0)
     {
         OnSNSEvent(RiseSdk.SnsEventType.LoginFailed, 0);
     }
 }
示例#2
0
 public void snsShareCancel(string data)
 {
     if (OnSNSEvent != null && OnSNSEvent.GetInvocationList().Length > 0)
     {
         OnSNSEvent(RiseSdk.SnsEventType.ShareCancel, 0);
     }
 }
示例#3
0
 /// <summary>
 /// faceboook发起挑战的结果回调方法,SDK自动调用。
 /// </summary>
 /// <param name="result">返回的结果数据</param>
 public void onReceiveChallengeResult(string result)
 {
     if (OnSNSEvent != null && OnSNSEvent.GetInvocationList().Length > 0)
     {
         int count = int.Parse(result);
         OnSNSEvent(count > 0 ? RiseSdk.SnsEventType.ChallengeSuccess : RiseSdk.SnsEventType.ChallengeFailed, count);
     }
 }
示例#4
0
 /// <summary>
 /// faceboook点赞的结果回调方法,SDK自动调用。
 /// </summary>
 /// <param name="result">返回的结果数据</param>
 public void onReceiveLikeResult(string result)
 {
     if (OnSNSEvent != null && OnSNSEvent.GetInvocationList().Length > 0)
     {
         int success = int.Parse(result);
         OnSNSEvent(success == 0 ? RiseSdk.SnsEventType.LikeSuccess : RiseSdk.SnsEventType.LikeFailed, 0);
     }
 }
示例#5
0
    /// <summary>
    /// faceboook发起挑战的结果回调方法,SDK自动调用。
    /// </summary>
    /// <param name="result">返回的结果数据</param>
    public void onReceiveChallengeResult(string result)
    {
        int count = int.Parse(result);

        if (OnSNSEvent != null && OnSNSEvent.GetInvocationList().Length > 0)
        {
            OnSNSEvent(count > 0, RiseSdk.SNS_EVENT_CHALLENGE, count);
        }
    }
示例#6
0
    /// <summary>
    /// faceboook点赞的结果回调方法,SDK自动调用。
    /// </summary>
    /// <param name="result">返回的结果数据</param>
    public void onReceiveLikeResult(string result)
    {
        int success = int.Parse(result);

        if (OnSNSEvent != null && OnSNSEvent.GetInvocationList().Length > 0)
        {
            OnSNSEvent(success == 0, RiseSdk.SNS_EVENT_LIKE, 0);
        }
    }