Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #11 from philips-software/f/related-product
Browse files Browse the repository at this point in the history
Update DTO and version to 1.1.4
  • Loading branch information
chakravarthi-t authored Aug 14, 2020
2 parents f04a3f1 + 65bcb82 commit e3ca0da
Show file tree
Hide file tree
Showing 19 changed files with 399 additions and 97 deletions.
2 changes: 1 addition & 1 deletion SSA-Java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.philips.ai</groupId>
<artifactId>smartsleep-analyzer</artifactId>
<version>1.1.0</version>
<version>1.1.4</version>
<packaging>jar</packaging>
<name>smartsleep-analyzer</name>
<description>Client library for interacting with the Philips SmartSleep Analyzer.</description>
Expand Down
52 changes: 26 additions & 26 deletions SSA-Java/src/main/java/com/philips/ai/models/ConditionDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public class ConditionDTO
private String iconWhatYouCanDo;
private String videoWhatYouCanDo;
private String recommendation;
private String ctaHeader;
private String ctaDescription;
private List<String> recommendedProductIdentifiers;
private List<String> relatedProductIdentifiers;
private String risksHeader;
private List<String> risks;
private String benefitsHeader;
Expand Down Expand Up @@ -247,36 +247,36 @@ public void setRecommendation (String value) {
}

/** GETTER
* The ctaHeader of the condition.
* The recommended product identifiers associated with the condition.
*/
@JsonGetter("ctaHeader")
public String getCTAHeader ( ) {
return this.ctaHeader;
}
@JsonGetter("recommendedProductIdentifiers")
public List<String> getRecommendedProductIdentifiers() {
return recommendedProductIdentifiers;
}

/** SETTER
* The ctaHeader of the condition.
* The recommended product identifiers associated with the condition.
*/
@JsonSetter("ctaHeader")
public void setCTAHeader (String value) {
this.ctaHeader = value;
}
/** GETTER
* The ctaDescription of the condition.
@JsonSetter("recommendedProductIdentifiers")
public void setRecommendedProductIdentifiers(List<String> value) {
this.recommendedProductIdentifiers = value;
}

/** GETTER
* The related product identifiers associated with the condition.
*/
@JsonGetter("ctaDescription")
public String getCTADescription ( ) {
return this.ctaDescription;
}
@JsonGetter("relatedProductIdentifiers")
public List<String> getRelatedProductIdentifiers() {
return relatedProductIdentifiers;
}

/** SETTER
* The ctaDescription of the condition.
* The related product identifiers associated with the condition.
*/
@JsonSetter("ctaDescription")
public void setCTADescription (String value) {
this.ctaDescription = value;
}
@JsonSetter("relatedProductIdentifiers")
public void setRelatedProductIdentifiers(List<String> value) {
this.relatedProductIdentifiers = value;
}

/** GETTER
* The risk header of the condition.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,23 +123,23 @@ public ConditionDTOBuilder recommendation(String recommendation) {
}

/**
* The ctaHeader of the condition.
* The recommended product identifiers associated with the condition.
*/
public ConditionDTOBuilder ctaHeader(String ctaHeader) {
conditionDTO.setCTAHeader(ctaHeader);
public ConditionDTOBuilder recommendedProductIdentifiers(List<String> recommendedProductIdentifiers) {
conditionDTO.setRecommendedProductIdentifiers(recommendedProductIdentifiers);
return this;
}

/**
* The ctaDescription of the condition.
* The related product identifiers associated with the condition.
*/
public ConditionDTOBuilder ctaDescription(String ctaDescription) {
conditionDTO.setCTADescription(ctaDescription);
public ConditionDTOBuilder relatedProductIdentifiers(List<String> relatedProductIdentifiers) {
conditionDTO.setRelatedProductIdentifiers(relatedProductIdentifiers);
return this;
}

/**
* The risk header of the conditon.
* The risk header of the condition.
*/
public ConditionDTOBuilder risksHeader(String risksHeader) {
conditionDTO.setRisksHeader(risksHeader);
Expand Down
52 changes: 26 additions & 26 deletions SSA-Java/src/main/java/com/philips/ai/models/ConditionResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public class ConditionResult
private String iconWhatYouCanDo;
private String videoWhatYouCanDo;
private String recommendation;
private String ctaHeader;
private String ctaDescription;
private List<String> recommendedProductIdentifiers;
private List<String> relatedProductIdentifiers;
private String risksHeader;
private List<String> risks;
private String benefitsHeader;
Expand Down Expand Up @@ -215,36 +215,36 @@ public void setRecommendation (String value) {
}

/** GETTER
* The ctaHeader of the condition result.
* The recommended product identifiers associated with the condition result.
*/
@JsonGetter("ctaHeader")
public String getCTAHeader ( ) {
return this.ctaHeader;
}
@JsonGetter("recommendedProductIdentifiers")
public List<String> getRecommendedProductIdentifiers() {
return recommendedProductIdentifiers;
}

/** SETTER
* The ctaHeader of the condition result.
* The recommended product identifiers associated with the condition result.
*/
@JsonSetter("ctaHeader")
public void setCTAHeader (String value) {
this.ctaHeader = value;
}
/** GETTER
* The ctaDescription of the condition result.
@JsonSetter("recommendedProductIdentifiers")
public void setRecommendedProductIdentifiers(List<String> value) {
this.recommendedProductIdentifiers = value;
}

/** GETTER
* The related product identifiers associated with the condition result.
*/
@JsonGetter("ctaDescription")
public String getCTADescription ( ) {
return this.ctaDescription;
}
@JsonGetter("relatedProductIdentifiers")
public List<String> getRelatedProductIdentifiers() {
return relatedProductIdentifiers;
}

/** SETTER
* The ctaDescription of the condition result.
* The related product identifiers associated with the condition result.
*/
@JsonSetter("ctaDescription")
public void setCTADescription (String value) {
this.ctaDescription = value;
}
@JsonSetter("relatedProductIdentifiers")
public void setRelatedProductIdentifiers(List<String> value) {
this.relatedProductIdentifiers = value;
}

/** GETTER
* The risksHeader of the condition result.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ public ConditionResultBuilder recommendation(String recommendation) {
return this;
}

public ConditionResultBuilder ctaHeader(String ctaHeader) {
conditionResult.setCTAHeader(ctaHeader);
public ConditionResultBuilder recommendedProductIdentifiers(List<String> recommendedProductIdentifiers) {
conditionResult.setRecommendedProductIdentifiers(recommendedProductIdentifiers);
return this;
}

public ConditionResultBuilder ctaDescription(String ctaDescription) {
conditionResult.setCTADescription(ctaDescription);
public ConditionResultBuilder relatedProductIdentifiers(List<String> relatedProductIdentifiers) {
conditionResult.setRelatedProductIdentifiers(relatedProductIdentifiers);
return this;
}

Expand Down
140 changes: 140 additions & 0 deletions SSA-Java/src/main/java/com/philips/ai/models/ProductDTO.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
/*
* SmartSleepAnalyzer
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/
package com.philips.ai.models;

import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

@JsonInclude(Include.ALWAYS)
public class ProductDTO implements java.io.Serializable {

/**
*
*/
private static final long serialVersionUID = -6585619993426892918L;
private String identifier;
private String title;
private String header;
private String detail;
private String icon;
private String link;
private String tagName;

/** GETTER
* The identifier of the related product.
*/
@JsonGetter("identifier")
public String getIdentifier() {
return identifier;
}

/** SETTER
* The identifier of the related product.
*/
@JsonSetter("identifier")
public void setIdentifier(String value) {
this.identifier = value;
}

/** GETTER
* The title of the related product.
*/
@JsonGetter("title")
public String getTitle() {
return title;
}

/** SETTER
* The title of the related product.
*/
@JsonSetter("title")
public void setTitle(String value) {
this.title = value;
}

/** GETTER
* The header of the related product.
*/
@JsonGetter("header")
public String getHeader() {
return header;
}

/** SETTER
* The header of the related product.
*/
@JsonSetter("header")
public void setHeader(String value) {
this.header = value;
}

/** GETTER
* The detail content of the related product.
*/
@JsonGetter("detail")
public String getDetail() {
return detail;
}

/** SETTER
* The detail content of the related product.
*/
@JsonSetter("detail")
public void setDetail(String value) {
this.detail = value;
}

/** GETTER
* The icon key of the related product.
*/
@JsonGetter("icon")
public String getIcon() {
return icon;
}

/** SETTER
* The icon key of the related product.
*/
@JsonSetter("icon")
public void setIcon(String value) {
this.icon = value;
}

/** GETTER
* The link of the related product.
*/
@JsonGetter("link")
public String getLink() {
return link;
}

/** SETTER
* The link of the related product.
*/
@JsonSetter("link")
public void setLink(String value) {
this.link = value;
}

/** GETTER
* The TagName of the related product.
*/
@JsonGetter("tagName")
public String getTagName() {
return tagName;
}

/** SETTER
* The TagName of the related product.
*/
@JsonSetter("tagName")
public void setTagName(String value) {
this.tagName = value;
}

}
Loading

0 comments on commit e3ca0da

Please sign in to comment.