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); }
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); } }
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); }
public static void StringCallback(IntPtr actionPtr, string result) { GetSocialDebugLogger.D("StringResultCallaback: " + result); IOSUtils.TriggerCallback(actionPtr, result); }
public static void IntCallback(IntPtr actionPtr, int result) { GetSocialDebugLogger.D("IntCallback: " + result); IOSUtils.TriggerCallback(actionPtr, result); }
public static void BoolCallback(IntPtr actionPtr, bool result) { GetSocialDebugLogger.D("BoolCallback: " + result); IOSUtils.TriggerCallback(actionPtr, result); }
static void GetObjectsDictionaryCallback <TValue>(IntPtr actionPtr, string json) where TValue : IConvertableFromNative <TValue>, new() { var result = GSJsonUtils.ParseDictionary <PublicUser>(json); IOSUtils.TriggerCallback(actionPtr, result); }
public static void OnUserAuthConflict(IntPtr onConflictActionPtr, string conflictUserJson) { var conflictUser = new ConflictUser().ParseFromJson(conflictUserJson.ToDict()); IOSUtils.TriggerCallback(onConflictActionPtr, conflictUser); }