Skip to content

Commit 94a9d77

Browse files
committed
service status
1 parent 36f8e6d commit 94a9d77

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Scripts/Services/PersonalityInsights/PersonalityInsights.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,8 @@ public CheckServiceStatus(PersonalityInsights service, ServiceStatus callback )
163163
{
164164
m_Service = service;
165165
m_Callback = callback;
166-
167-
DataModels.ContentListContainer contentListContainer = new DataModels.ContentListContainer();
168-
DataModels.ContentItem item0 = new DataModels.ContentItem();
169-
item0.content = "test0";
170-
DataModels.ContentItem item1 = new DataModels.ContentItem();
171-
item1.content = "test1";
172-
contentListContainer.contentItems = new DataModels.ContentItem[] {item0, item1};
173-
174-
if (!m_Service.GetProfile(OnGetProfile, "hello"))
166+
string dataPath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/personalityInsights.json";
167+
if(!m_Service.GetProfile(OnGetProfile, dataPath, DataModels.ContentType.TEXT_PLAIN, DataModels.Language.ENGLISH))
175168
m_Callback(SERVICE_ID, false);
176169
}
177170

0 commit comments

Comments
 (0)