/// <summary> /// Returns property name for use with JSON formatted definitions. /// </summary> /// <returns>name for use with JSON formatted definitions.</returns> /// <param name="aType">Type to get JSON name for</param> private String GetJSONName(IQUIdType aType) { switch (aType) { case IQUIdType.Custom: return "custom_user_id"; case IQUIdType.Facebook: return "facebook_user_id"; case IQUIdType.GooglePlus: return "google_plus_user_id"; case IQUIdType.SDK: return "iqu_sdk_id"; case IQUIdType.Twitter: return "twitter_user_id"; #if UNITY_ANDROID && !UNITY_EDITOR case IQUIdType.AndroidAdTracking: return "android_ad_tracking"; case IQUIdType.AndroidAdvertising: return "android_advertising_id"; case IQUIdType.AndroidId: return "android_id"; case IQUIdType.AndroidSerial: return "android_serial"; #endif #if UNITY_IOS && !UNITY_EDITOR case IQUIdType.IOSAdvertising: return "ios_advertising_identifier"; case IQUIdType.IOSVendor: return "ios_vendor_id"; case IQUIdType.IOSAdTracking: return "ios_ad_tracking"; #endif default: return aType.ToString(); } }