Skip to content

Commit 53e8b1e

Browse files
committed
feat: Separating core from sdk
1 parent 6db822e commit 53e8b1e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+180
-131
lines changed

Assistant/v2/Assistant.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
*/
1717

1818
using FullSerializer;
19-
using IBM.Watson.Connection;
20-
using IBM.Watson.Logging;
21-
using IBM.Watson.Utilities;
19+
using IBM.Cloud.SDK;
20+
using IBM.Cloud.SDK.Connection;
21+
using IBM.Cloud.SDK.Utilities;
2222
using System;
2323
using System.Collections.Generic;
2424
using System.Text;

Assistant/v2/Models/MessageContextSkill.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
using FullSerializer;
2020
using FullSerializer.Internal;
21-
using IBM.Watson.Utilities;
21+
using IBM.Cloud.SDK.Utilities;
2222
using System;
2323
using System.Collections.Generic;
2424

Assistant/v2/Models/MessageContextSkills.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
using FullSerializer;
19-
using IBM.Watson.Utilities;
19+
using IBM.Cloud.SDK.Utilities;
2020

2121
namespace IBM.Watson.Assistant.V2
2222
{
Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/**
22
* Copyright 2019 IBM Corp. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,23 +15,30 @@
1515
*
1616
*/
1717

18+
using System;
1819
using System.Collections.Generic;
19-
using FullSerializer;
20-
using IBM.Watson.Connection;
20+
using System.Linq;
21+
using System.Text;
22+
using System.Threading.Tasks;
2123

22-
namespace IBM.Watson.ToneAnalyzer.v3.Model
24+
namespace IBM.Cloud.SDK
2325
{
24-
/// <summary>
25-
/// ToneChatInput.
26-
/// </summary>
27-
public class ToneChatInput
26+
public class BaseService
2827
{
29-
/// <summary>
30-
/// An array of `Utterance` objects that provides the input content that the service is to analyze.
31-
/// </summary>
32-
[fsProperty("utterances")]
33-
public List<Utterance> Utterances { get; set; }
34-
}
28+
public BaseService(string serviceId)
29+
{
30+
31+
}
32+
33+
public BaseService(string versionDate, string serviceId)
34+
{
3535

36+
}
3637

38+
public BaseService(string versionDate, Credentials credentials, string serviceId)
39+
{
40+
41+
}
42+
43+
}
3744
}

Scripts/Services/ToneAnalyzer/v3/Model/ToneChatInput.cs.meta renamed to Core/BaseService.cs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Core/CallbackDelegates.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
using System.Collections.Generic;
1919

20-
namespace IBM.Watson
20+
namespace IBM.Cloud.SDK
2121
{
2222
/// <summary>
2323
/// Success callback delegate.

Core/Connection/RESTConnector.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
// uncomment to enable debugging
1919
//#define ENABLE_DEBUGGING
2020

21-
using IBM.Watson.Utilities;
22-
using IBM.Watson.Logging;
21+
using IBM.Cloud.SDK.Utilities;
22+
using IBM.Cloud.SDK.Logging;
2323
using System;
2424
using System.Collections;
2525
using System.Collections.Generic;
@@ -32,7 +32,7 @@
3232
using System.Net.Security;
3333
#endif
3434

35-
namespace IBM.Watson.Connection
35+
namespace IBM.Cloud.SDK.Connection
3636
{
3737
/// <summary>
3838
/// REST connector class.

Core/Connection/WSConnector.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
//! Uncomment to enable message debugging
1919
//#define ENABLE_MESSAGE_DEBUGGING
2020

21-
using IBM.Watson.Logging;
22-
using IBM.Watson.Utilities;
21+
using IBM.Cloud.SDK.Logging;
22+
using IBM.Cloud.SDK.Utilities;
2323
using System.Collections;
2424
using System.Collections.Generic;
2525
using System.Security.Authentication;
@@ -34,7 +34,7 @@
3434
using Windows.Storage.Streams;
3535
#endif
3636

37-
namespace IBM.Watson.Connection
37+
namespace IBM.Cloud.SDK.Connection
3838
{
3939
/// <summary>
4040
/// WebSocket connector class.

Core/Debug/DebugReactor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
*
1616
*/
1717

18-
using IBM.Watson.Logging;
18+
using IBM.Cloud.SDK.Logging;
1919

20-
namespace IBM.Watson.Debug
20+
namespace IBM.Cloud.SDK.Debug
2121
{
2222
/// <summary>
2323
/// This log reactor logs into the UnityEngine.Debug.Log() function.

Core/Editor/IBMCloudSignup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*/
1717

18-
using IBM.Watson.Utilities;
18+
using IBM.Cloud.SDK;
1919
using UnityEngine;
2020

2121
public class IBMCloudSignup : MonoBehaviour

Core/IBMService.cs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* Copyright 2019 IBM Corp. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
using System;
19+
using System.Collections.Generic;
20+
using System.Linq;
21+
using System.Text;
22+
using System.Threading.Tasks;
23+
24+
namespace IBM.Cloud.SDK
25+
{
26+
class IBMService
27+
{
28+
}
29+
}

Core/IBMService.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Core/Logging/FileReactor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
using System;
1919
using System.IO;
2020

21-
namespace IBM.Watson.Logging
21+
namespace IBM.Cloud.SDK.Logging
2222
{
2323
#if !UNITY_WEBPLAYER
2424

Core/Logging/ILogReactor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*/
1717

18-
namespace IBM.Watson.Logging
18+
namespace IBM.Cloud.SDK.Logging
1919
{
2020
/// <summary>
2121
/// Any class that implement this interface can be added to the Logger class as a reactor and hook

Core/Logging/Logger.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
*
1616
*/
1717

18-
using IBM.Watson.Utilities;
19-
using IBM.Watson.Debug;
18+
using IBM.Cloud.SDK.Debug;
19+
using IBM.Cloud.SDK.Logging;
20+
using IBM.Cloud.SDK.Utilities;
2021
using System;
2122
using System.Collections.Generic;
2223
using UnityEngine;
2324

24-
namespace IBM.Watson.Logging
25+
namespace IBM.Cloud.SDK
2526
{
2627
/// <summary>
2728
/// All log messages are assigned to a log level, typically reactors have filters and will filter log

Core/RequestObject.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
*
1616
*/
1717

18-
using IBM.Watson.Connection;
18+
using IBM.Cloud.SDK.Connection;
1919
using System.Collections.Generic;
2020

21-
namespace IBM.Watson
21+
namespace IBM.Cloud.SDK
2222
{
2323
/// <summary>
2424
/// The request object for all REST requests.

Core/Utilities/AudioClipUtil.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
*
1616
*/
1717

18-
using IBM.Watson.Logging;
18+
using IBM.Cloud.SDK.Logging;
1919
using System;
2020
using System.IO;
2121
using UnityEngine;
2222

23-
namespace IBM.Watson.Utilities
23+
namespace IBM.Cloud.SDK
2424
{
2525
/// <summary>
2626
/// AudioClip helper functions.

Core/Utilities/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*/
1717

18-
namespace IBM.Watson.Utilities
18+
namespace IBM.Cloud.SDK
1919
{
2020
/// <summary>
2121
/// This class wraps all constants.

Core/Utilities/Credentials.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@
1616
*/
1717

1818
using FullSerializer;
19-
using IBM.Watson.Connection;
20-
using IBM.Watson.Logging;
19+
using IBM.Cloud.SDK.Connection;
20+
using IBM.Cloud.SDK.Utilities;
2121
using System;
2222
using System.Collections.Generic;
2323
using System.Text;
2424
using UnityEngine.Networking;
25+
using Utility = IBM.Cloud.SDK.Utilities.Utility;
2526

26-
namespace IBM.Watson.Utilities
27+
namespace IBM.Cloud.SDK
2728
{
2829
/// <summary>
2930
/// Helper class for holding a user and password or authorization token, used by both the WSCOnnector and RESTConnector.

Core/Utilities/EventManager.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@
1515
*
1616
*/
1717

18-
using IBM.Watson.Logging;
18+
using IBM.Cloud.SDK.Logging;
19+
using IBM.Cloud.SDK.Utilities;
1920
using System;
2021
using System.Collections;
2122
using System.Collections.Generic;
2223

23-
namespace IBM.Watson.Utilities
24+
namespace IBM.Cloud.SDK
2425
{
2526
/// <summary>
2627
/// Singleton class for sending and receiving events.

Core/Utilities/FrameRateCounter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
using UnityEngine;
2020
using UnityEngine.UI;
2121

22-
namespace IBM.Watson.Utilities
22+
namespace IBM.Cloud.SDK
2323
{
2424
/// <summary>
2525
/// Displays the frame rate of the application.

Core/Utilities/KeyEventManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
*
1616
*/
1717

18+
using IBM.Cloud.SDK.Utilities;
1819
using System;
1920
using System.Collections.Generic;
2021
using UnityEngine;
2122

22-
namespace IBM.Watson.Utilities
23+
namespace IBM.Cloud.SDK
2324
{
2425
/// <summary>
2526
/// Key press modifiers

Core/Utilities/NestedPrefabs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
using UnityEngine;
1919
using System.Collections.Generic;
2020

21-
namespace IBM.Watson.Utilities
21+
namespace IBM.Cloud.SDK.Utilities
2222
{
2323
class NestedPrefabs : MonoBehaviour
2424
{

Core/Utilities/Runnable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
using System.Collections;
2323
using System.Collections.Generic;
2424
#if ENABLE_RUNNABLE_DEBUGGING
25-
using IBM.Watson.Logging;
25+
using IBM.Cloud.SDK.Logging;
2626
#endif
2727

28-
namespace IBM.Watson.Utilities
28+
namespace IBM.Cloud.SDK.Utilities
2929
{
3030
/// <summary>
3131
/// Helper class for running co-routines without having to inherit from MonoBehavior.

Core/Utilities/SerializableDictionary.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
using System.Collections.Generic;
2020
using UnityEngine;
2121

22-
namespace IBM.Watson.Utilities
22+
namespace IBM.Cloud.SDK.Utilities
2323
{
2424
[Serializable]
2525
public class SerializableDictionary<TKey, TValue> : Dictionary<TKey, TValue>, ISerializationCallbackReceiver

Core/Utilities/SerializedDelegate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
using System.Reflection;
2121
using UnityEngine;
2222

23-
namespace IBM.Watson.Utilities
23+
namespace IBM.Cloud.SDK.Utilities
2424
{
2525
/// <summary>
2626
/// This class allows for a delegate to be serialized for a component and method

Core/Utilities/Singleton.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
using System.Reflection;
2424
#endif
2525

26-
namespace IBM.Watson.Utilities
26+
namespace IBM.Cloud.SDK.Utilities
2727
{
2828
/// <summary>
2929
/// Singleton pattern class. This class detects if T is a MonoBehavior and will

Core/Utilities/TimedDestroy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
using UnityEngine;
1919
using UnityEngine.UI;
2020

21-
namespace IBM.Watson.Utilities
21+
namespace IBM.Cloud.SDK.Utilities
2222
{
2323
/// <summary>
2424
/// Helper class for automatically destroying objects after a static amount of time has elapsed.

Core/Utilities/UnityObjectUtil.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
using System.Collections.Generic;
2020
using UnityEngine;
2121

22-
namespace IBM.Watson.Utilities
22+
namespace IBM.Cloud.SDK.Utilities
2323
{
2424
/// <summary>
2525
/// AudioClip helper functions.

0 commit comments

Comments
 (0)