You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PlumberUltimateAds/Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/IPlayFabHttp.cs

62 lines
1.7 KiB
C#

using System;
using System.Collections.Generic;
using PlayFab.SharedModels;
namespace PlayFab.Internal
{
public enum AuthType
{
None,
PreLoginSession, // Not yet defined
LoginSession, // "X-Authorization"
DevSecretKey, // "X-SecretKey"
EntityToken, // "X-EntityToken"
TelemetryKey // "X-TelemetryKey"
}
public enum HttpRequestState
{
Sent,
Received,
Idle,
Error
}
public class CallRequestContainer
{
#if !UNITY_WSA && !UNITY_WP8
public HttpRequestState HttpState = HttpRequestState.Idle;
public System.Net.HttpWebRequest HttpRequest = null;
#endif
#if PLAYFAB_REQUEST_TIMING
public PlayFabHttp.RequestTiming Timing;
public System.Diagnostics.Stopwatch Stopwatch;
#endif
// This class stores the state of the request and all associated data
public string ApiEndpoint = null;
public string FullUrl = null;
public byte[] Payload = null;
public string JsonResponse = null;
public PlayFabRequestCommon ApiRequest;
public Dictionary<string, string> RequestHeaders;
public PlayFabResultCommon ApiResult;
public PlayFabError Error;
public Action DeserializeResultJson;
public Action InvokeSuccessCallback;
public Action<PlayFabError> ErrorCallback;
public object CustomData = null;
public PlayFabApiSettings settings;
public PlayFabAuthenticationContext context;
public IPlayFabInstanceApi instanceApi;
public bool CalledGetResponse = false;
public CallRequestContainer()
{
#if PLAYFAB_REQUEST_TIMING
Stopwatch = System.Diagnostics.Stopwatch.StartNew();
#endif
}
}
}