Skip to content

Commit 685334c

Browse files
authored
Merge branch 'develop' into 404-error-in-runtime
2 parents bda55f7 + 4a17e07 commit 685334c

27 files changed

+766
-268
lines changed

Examples/ServiceExamples/Scripts/ExampleToneAnalyzer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private IEnumerator Examples()
107107
Log.Debug("ExampleToneAnalyzer.Examples()", "Tone analyzer examples complete.");
108108
}
109109

110-
private void OnGetToneAnalyze(ToneAnalyzerResponse resp, Dictionary<string, object> customData)
110+
private void OnGetToneAnalyze(ToneAnalysis resp, Dictionary<string, object> customData)
111111
{
112112
Log.Debug("ExampleToneAnalyzer.OnGetToneAnalyze()", "{0}", customData["json"].ToString());
113113
_analyzeToneTested = true;

Scripts/Services/ToneAnalyzer/v3/DataModels.cs

Lines changed: 0 additions & 260 deletions
This file was deleted.

Scripts/Services/ToneAnalyzer/v3/Model.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/**
2+
* Copyright 2018 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 FullSerializer;
19+
using System.Collections.Generic;
20+
21+
namespace IBM.Watson.DeveloperCloud.Services.ToneAnalyzer.v3
22+
{
23+
/// <summary>
24+
/// DocumentAnalysis.
25+
/// </summary>
26+
public class DocumentAnalysis
27+
{
28+
/// <summary>
29+
/// **`2017-09-21`:** An array of `ToneScore` objects that provides the results of the analysis for each
30+
/// qualifying tone of the document. The array includes results for any tone whose score is at least 0.5. The
31+
/// array is empty if no tone has a score that meets this threshold. **`2016-05-19`:** Not returned.
32+
/// </summary>
33+
/// <value>
34+
/// **`2017-09-21`:** An array of `ToneScore` objects that provides the results of the analysis for each
35+
/// qualifying tone of the document. The array includes results for any tone whose score is at least 0.5. The
36+
/// array is empty if no tone has a score that meets this threshold. **`2016-05-19`:** Not returned.
37+
/// </value>
38+
[fsProperty("tones")]
39+
public List<ToneScore> Tones { get; set; }
40+
/// <summary>
41+
/// **`2017-09-21`:** Not returned. **`2016-05-19`:** An array of `ToneCategory` objects that provides the
42+
/// results of the tone analysis for the full document of the input content. The service returns results only
43+
/// for the tones specified with the `tones` parameter of the request.
44+
/// </summary>
45+
/// <value>
46+
/// **`2017-09-21`:** Not returned. **`2016-05-19`:** An array of `ToneCategory` objects that provides the
47+
/// results of the tone analysis for the full document of the input content. The service returns results only
48+
/// for the tones specified with the `tones` parameter of the request.
49+
/// </value>
50+
[fsProperty("tone_categories")]
51+
public List<ToneCategory> ToneCategories { get; set; }
52+
/// <summary>
53+
/// **`2017-09-21`:** A warning message if the overall content exceeds 128 KB or contains more than 1000
54+
/// sentences. The service analyzes only the first 1000 sentences for document-level analysis and the first 100
55+
/// sentences for sentence-level analysis. **`2016-05-19`:** Not returned.
56+
/// </summary>
57+
/// <value>
58+
/// **`2017-09-21`:** A warning message if the overall content exceeds 128 KB or contains more than 1000
59+
/// sentences. The service analyzes only the first 1000 sentences for document-level analysis and the first 100
60+
/// sentences for sentence-level analysis. **`2016-05-19`:** Not returned.
61+
/// </value>
62+
[fsProperty("warning")]
63+
public string Warning { get; set; }
64+
}
65+
66+
}

Scripts/Services/ToneAnalyzer/v3/DataModels.cs.meta renamed to Scripts/Services/ToneAnalyzer/v3/Model/DocumentAnalysis.cs.meta

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

0 commit comments

Comments
 (0)