Skip to content

Commit 06a03b5

Browse files
🐛 fixes to personality insights example and AcceptedLanguage
1 parent d9314b8 commit 06a03b5

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

examples/java/com/ibm/watson/developer_cloud/personality_insights/v3/PersonalityInsightsExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
1111
* specific language governing permissions and limitations under the License.
1212
*/
13-
package com.ibm.watson.developer_cloud.personality_insights.v2;
13+
package com.ibm.watson.developer_cloud.personality_insights.v3;
1414

1515
import com.ibm.watson.developer_cloud.personality_insights.v3.model.Profile;
1616

personality-insights/src/main/java/com/ibm/watson/developer_cloud/personality_insights/v3/model/AcceptLanguage.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@
2020
*/
2121
public enum AcceptLanguage {
2222

23-
/** english. */
23+
@SerializedName("ar") ARABIC("ar"),
2424
@SerializedName("en") ENGLISH("en"),
25-
26-
/** spanish. */
2725
@SerializedName("es") SPANISH("es"),
28-
29-
/** arabic. */
30-
@SerializedName("ar") ARABIC("ar"),
31-
32-
/** japanese. */
33-
@SerializedName("ja") JAPANESE("ja");
26+
@SerializedName("ja") JAPANESE("ja"),
27+
@SerializedName("pt-br") BRAZILIAN_PORTUGUESE("pt-br"),
28+
@SerializedName("fr") FRENCH("fr"),
29+
@SerializedName("de") GERMAN("de"),
30+
@SerializedName("it") ITALIAN("it"),
31+
@SerializedName("ko") KOREAN("ko"),
32+
@SerializedName("zh-cn") SIMPLIFIED_CHINESE("zh-cn"),
33+
@SerializedName("zh-tw") TRADITIONAL_CHINESE("zh-tw");
3434

3535
private final String text;
3636

personality-insights/src/main/java/com/ibm/watson/developer_cloud/personality_insights/v3/model/ProfileOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public Builder text(String text) {
164164
private Boolean rawScores;
165165
private Language language;
166166
private String text;
167-
public Boolean consumptionPreferences;
167+
private Boolean consumptionPreferences;
168168

169169
private ProfileOptions(Builder builder) {
170170
Validator.isTrue(

0 commit comments

Comments
 (0)