Initial commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
namespace RudderSdk.Unity
|
||||
{
|
||||
public interface IUnityKeyValueStore
|
||||
{
|
||||
string GetString(string key);
|
||||
void SetString(string key, string value);
|
||||
void DeleteKey(string key);
|
||||
void Save();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e6b223b25f3c9492b8f0d7d75528a4b2
|
||||
@@ -0,0 +1,9 @@
|
||||
using RudderSdk.Core.Abstractions;
|
||||
|
||||
namespace RudderSdk.Unity
|
||||
{
|
||||
public interface IUnityLoggerSink
|
||||
{
|
||||
void Log(RudderLogLevel level, string message);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ec59e2140dfdd453ca968c21c67f6554
|
||||
@@ -0,0 +1,16 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace RudderSdk.Unity
|
||||
{
|
||||
public interface IUnityRequestExecutor
|
||||
{
|
||||
Task<string> SendAsync(
|
||||
string method,
|
||||
string url,
|
||||
string body,
|
||||
IReadOnlyDictionary<string, string> headers,
|
||||
CancellationToken cancellationToken = default);
|
||||
}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e634b1eed56bc4eb4afce1f4558623a5
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace RudderSdk.Unity
|
||||
{
|
||||
internal sealed class UnityRequestException : Exception
|
||||
{
|
||||
public int StatusCode { get; }
|
||||
public string ResponseBody { get; }
|
||||
|
||||
public UnityRequestException(int statusCode, string responseBody, string message)
|
||||
: base(message)
|
||||
{
|
||||
StatusCode = statusCode;
|
||||
ResponseBody = responseBody;
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f76d30c3864c428cbc217d51ea84c224
|
||||
Reference in New Issue
Block a user