-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated from pipeline, Version : 16.24.0
- Loading branch information
1 parent
deee8ff
commit fab9f8c
Showing
115 changed files
with
2,335 additions
and
742 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,20 @@ | ||
// Copyright (c) 2023 AccelByte Inc. All Rights Reserved. | ||
// Copyright (c) 2023 - 2024 AccelByte Inc. All Rights Reserved. | ||
// This is licensed software from AccelByte Inc, for limitations | ||
// and restrictions contact your company contract manager. | ||
|
||
using AccelByte.Core; | ||
using AccelByte.Models; | ||
using System.Collections.Generic; | ||
using System; | ||
|
||
namespace AccelByte.Api | ||
{ | ||
public class AnalyticsApi : ApiBase | ||
[Obsolete("Please use ClientGameTelemetryApi api, will be removed on September release")] | ||
public class AnalyticsApi : ClientGameTelemetryApi | ||
{ | ||
private readonly string gameTelemetryUrl; | ||
|
||
internal AnalyticsApi(IHttpClient inHttpClient, | ||
Config inConfig, | ||
ISession inSession) | ||
: base(inHttpClient, inConfig, inConfig.GameTelemetryServerUrl, inSession) | ||
: base(inHttpClient, inConfig, inSession) | ||
{ | ||
gameTelemetryUrl = inConfig.GameTelemetryServerUrl + "/v1/protected/events"; | ||
} | ||
|
||
public async void SendData(List<TelemetryBody> telemetryBodies | ||
, ResultCallback callback) | ||
{ | ||
if (telemetryBodies == null) | ||
{ | ||
AccelByteDebug.LogError(nameof(telemetryBodies) + " is null."); | ||
callback.TryError(ErrorCode.InvalidArgument); | ||
return; | ||
} | ||
|
||
var request = HttpRequestBuilder | ||
.CreatePost(gameTelemetryUrl) | ||
.WithContentType(MediaType.ApplicationJson) | ||
.WithBody(telemetryBodies.ToUtf8Json()) | ||
.WithBearerAuth(AuthToken) | ||
.Accepts(MediaType.ApplicationJson) | ||
.GetResult(); | ||
|
||
HttpSendResult sendResult = await HttpClient.SendRequestAsync(request); | ||
IHttpResponse response = sendResult.CallbackResponse; | ||
var result = response.TryParse(); | ||
callback.Try(result); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) 2023 - 2024 AccelByte Inc. All Rights Reserved. | ||
// This is licensed software from AccelByte Inc, for limitations | ||
// and restrictions contact your company contract manager. | ||
|
||
using AccelByte.Core; | ||
using AccelByte.Models; | ||
using System.Collections.Generic; | ||
using UnityEngine.Assertions; | ||
|
||
namespace AccelByte.Api | ||
{ | ||
public class ClientGameTelemetryApi : ApiBase | ||
{ | ||
internal ClientGameTelemetryApi(IHttpClient inHttpClient, | ||
Config inConfig, | ||
ISession inSession) | ||
: base(inHttpClient, inConfig, inConfig.GameTelemetryServerUrl, inSession) | ||
{ | ||
} | ||
|
||
public void SendData(List<TelemetryBody> telemetryBodies | ||
, ResultCallback callback) | ||
{ | ||
AccelByteGameTelemetryApi.SendProtectedEventV1(telemetryBodies,httpOperator, BaseUrl, AuthToken, callback); | ||
} | ||
|
||
internal void FetchServerTime(ref AccelByteTimeManager timeManager) | ||
{ | ||
Assert.IsNotNull(timeManager, "Time manager can't be null"); | ||
timeManager.FetchServerTime(httpOperator, Config.Namespace, Config.BasicServerUrl); | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...me/ThirdParties/Google/IGoogleImp.cs.meta → .../Analytics/ClientGameTelemetryApi.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.