-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathICloudScriptableObjectAPI.cs
More file actions
25 lines (21 loc) · 961 Bytes
/
ICloudScriptableObjectAPI.cs
File metadata and controls
25 lines (21 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;
namespace Magix
{
public interface ICloudResourceAPI
{
public void EditorLogin(Action onEditorLogin = null);
public bool IsLoggedIn { set; get; }
public string EditorUserId { get; }
// Success, Result
public void CheckVariableIsExist(string userId, string resourceName, Action<bool> callback);
// Success, Result
public void GetVariableCloudJson(string variableName, Type type, Action<bool, string> onCompleteCallback);
// Success, ErrorMessage, Result
public void SetVariableCloud<T>(string variableName, T obj, Action<bool> onCompleteCallback = null);
// Success, Result
public void GetAllEntriesUser(string userName, Action<Dictionary<string, string>> onCompleteCallback);
// Succes, Message
public void DeleteVariableCloud(string variableName, Action<bool> onCompleteCallback = null);
}
}