Skip to content

Commit 5a1886b

Browse files
committed
access of ConfigLaded, public static function to clear APIKey from VR
1 parent b8e48df commit 5a1886b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Scripts/Services/VisualRecognition/VisualRecognition.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ public class VisualRecognition : IWatsonService
100100
private const float REQUEST_TIMEOUT = 10.0f * 60.0f;
101101
#endregion
102102

103+
#region Public Functions
104+
public static void ClearApiKey()
105+
{
106+
mp_ApiKey = default(string);
107+
}
108+
#endregion
109+
103110
#region Classify Image
104111
/// <summary>
105112
/// Classifies image specified by URL.

Scripts/Utilities/Config.cs

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public bool HasAPIKey()
174174
/// Returns true if the configuration is loaded or not.
175175
/// </summary>
176176
[fsIgnore]
177-
public bool ConfigLoaded { get; private set; }
177+
public bool ConfigLoaded { get; set; }
178178
/// <summary>
179179
/// Returns the singleton instance.
180180
/// </summary>

0 commit comments

Comments
 (0)