Esempio n. 1
0
        public static void ServerRouteConfigShouldLoaded()
        {
            JigsawPuzzleWindow window = EditorWindow.GetWindow <JigsawPuzzleWindow>();

            _ = window.Connector.Value;
            string content = JsonUtility.ToJson(window.Connector.Value.ServerRouteConfig, true);

            Debug.Log($"{nameof(ServerRouteConfig)} {content}");
        }
Esempio n. 2
0
        public static void ExplorerShouldGetFileMapJson()
        {
            JigsawPuzzleWindow window = EditorWindow.GetWindow <JigsawPuzzleWindow>();

            window.Connector.Value.Get(
                "GetFileMapJson", "Explorer",
                (object obj) =>
            {
                Debug.Log($"Finish Explorer/GetFileMapJson data :\n{obj}");
            },
                (HttpResponseMessage message) =>
            {
                Debug.LogError("Error!");
                Debug.Log(message.ToString());
            });
        }
Esempio n. 3
0
        public static void DashboardShouldReturnGetDetailInfo()
        {
            JigsawPuzzleWindow window = EditorWindow.GetWindow <JigsawPuzzleWindow>();

            window.Connector.Value.Get(
                "GetDetailInfo", "Dashboard",
                (object obj) =>
            {
                Debug.Log($"Finish Dashboard/GetDetailInfo data :\n{obj}");
            },
                (HttpResponseMessage message) =>
            {
                Debug.LogError("Error!");
                Debug.Log(message.ToString());
            });
        }