예제 #1
0
        public static void FailureCallback(IntPtr actionPtr, string serializedError)
        {
            GetSocialDebugLogger.D("FailureCallback: " + serializedError + ", ptr: " + actionPtr.ToInt32());
            var error = new GetSocialError().ParseFromJson(serializedError);

            IOSUtils.TriggerCallback(actionPtr, error);
        }
        public static void OnGlobalError(IntPtr onGlobalErrorActionPtr, string serializedError)
        {
            GetSocialDebugLogger.D("OnGlobalError : " + serializedError);
            var error = new GetSocialError().ParseFromJson(serializedError);

            IOSUtils.TriggerCallback(onGlobalErrorActionPtr, error);
        }
예제 #3
0
 static void GetObjectCallback <T>(IntPtr actionPtr, string json) where T : IConvertableFromNative <T>, new()
 {
     if (actionPtr != IntPtr.Zero)
     {
         var result = GSJsonUtils.Parse <T>(json);
         IOSUtils.TriggerCallback(actionPtr, result);
     }
 }
예제 #4
0
        public static void FetchReferralDataCallback(IntPtr actionPtr, string referralData)
        {
            GetSocialDebugLogger.D("OnReferralDataReceived: " + referralData);
            ReferralData data = null;

            if (!string.IsNullOrEmpty(referralData))
            {
                data = new ReferralData().ParseFromJson(referralData.ToDict());
            }
            IOSUtils.TriggerCallback(actionPtr, data);
        }
예제 #5
0
 public static void StringCallback(IntPtr actionPtr, string result)
 {
     GetSocialDebugLogger.D("StringResultCallaback: " + result);
     IOSUtils.TriggerCallback(actionPtr, result);
 }
예제 #6
0
 public static void IntCallback(IntPtr actionPtr, int result)
 {
     GetSocialDebugLogger.D("IntCallback: " + result);
     IOSUtils.TriggerCallback(actionPtr, result);
 }
예제 #7
0
 public static void BoolCallback(IntPtr actionPtr, bool result)
 {
     GetSocialDebugLogger.D("BoolCallback: " + result);
     IOSUtils.TriggerCallback(actionPtr, result);
 }
예제 #8
0
        static void GetObjectsDictionaryCallback <TValue>(IntPtr actionPtr, string json) where TValue : IConvertableFromNative <TValue>, new()
        {
            var result = GSJsonUtils.ParseDictionary <PublicUser>(json);

            IOSUtils.TriggerCallback(actionPtr, result);
        }
예제 #9
0
        public static void OnUserAuthConflict(IntPtr onConflictActionPtr, string conflictUserJson)
        {
            var conflictUser = new ConflictUser().ParseFromJson(conflictUserJson.ToDict());

            IOSUtils.TriggerCallback(onConflictActionPtr, conflictUser);
        }