private static void CreateBaseData() { basicDataDictionary = new Dictionary <string, string>() { { GB_PLATFORM, platform }, { GB_PROJECT_APP_ID, GamebaseUnitySDK.AppID }, { GB_APP_CLIENT_VERSION, GamebaseUnitySDK.AppVersion }, { GB_LAUNCHING_ZONE, GamebaseUnitySDK.ZoneType.ToUpper() }, { GB_UNITY_SDK_VERSION, Gamebase.GetSDKVersion() }, { GB_SERVER_API_VERSION, Lighthouse.API.VERSION }, { GB_LAST_LOGGEDIN_IDP, "" }, { GB_LAST_LOGGEDIN_USER_ID, "" }, { GB_GUEST_UUID, GamebaseUnitySDK.UUID }, { GB_DEVICE_LANGUAGE_CODE, Gamebase.GetDeviceLanguageCode() }, { GB_DISPLAY_LANGUAGE_CODE, Gamebase.GetDisplayLanguageCode() }, { GB_COUNTRY_CODE_USIM, string.Empty }, { GB_COUNTRY_CODE_DEVICE, Gamebase.GetCountryCodeOfDevice() }, { GB_NETWORK_TYPE, Gamebase.Network.GetNetworkType().ToString().Replace("TYPE_", "") }, { GB_GAME_ENGINE, GAME_ENGINE }, { GB_CARRIER, "NONE" }, { GB_DEVICE_MODEL, SystemInfo.deviceModel } }; if (PlayerPrefs.HasKey(KEY_LAST_LOGGEDIN_IDP) == true) { string idPPreference = PlayerPrefs.GetString(KEY_LAST_LOGGEDIN_IDP); basicDataDictionary.Add(GB_LAST_LOGGEDIN_IDP, idPPreference); } if (PlayerPrefs.HasKey(KEY_LAST_LOGGEDIN_USERID) == true) { string userIdPreference = PlayerPrefs.GetString(KEY_LAST_LOGGEDIN_USERID); basicDataDictionary.Add(GB_LAST_LOGGEDIN_USER_ID, userIdPreference); } }
public Dictionary <string, string> MakeFields(IDictionary <string, string> userFields) { return(new Dictionary <string, string>(userFields) { { "GBPlatform", GamebaseUnitySDK.Platform }, { "GBProjectAppID", GamebaseUnitySDK.AppID }, { "GBAppClientVersion", GamebaseUnitySDK.AppVersion }, { "GBLaunchingZone", GamebaseUnitySDK.ZoneType.ToLower() }, { "GBUnitySDKVersion", GamebaseUnitySDK.SDKVersion }, { "GBNativeSDKVersion", Gamebase.GetSDKVersion() }, { "GBServerAPIVersion", "" }, { "GBServerStaticsStoreCode", GamebaseUnitySDK.StoreCode }, { "GBInternalReportVersion", "v1" }, { "GBLastLoggedInIDP", Gamebase.GetLastLoggedInProvider() }, { "GBGuestUUID", GamebaseUnitySDK.UUID }, { "GBDeviceLanguageCode", Gamebase.GetDeviceLanguageCode() }, { "GBDisplayLanguageCode", Gamebase.GetDisplayLanguageCode() }, { "GBCountryCodeUSIM", Gamebase.GetCountryCodeOfUSIM() }, { "GBCountryCodeDevice", Gamebase.GetCountryCodeOfDevice() }, { "GBNetworkType", Gamebase.Network.GetNetworkTypeName() }, }); }