diff --git a/petstore/petstoreapp/src/main/java/com/chtrembl/petstoreapp/model/AudioData.java b/petstore/petstoreapp/src/main/java/com/chtrembl/petstoreapp/model/AudioData.java index 53441fca..324a655f 100644 --- a/petstore/petstoreapp/src/main/java/com/chtrembl/petstoreapp/model/AudioData.java +++ b/petstore/petstoreapp/src/main/java/com/chtrembl/petstoreapp/model/AudioData.java @@ -16,19 +16,27 @@ public class AudioData implements Serializable { @JsonProperty("audioAsText") private String audioAsText; - @JsonProperty("aiActionItems") - private String aiActionItems; + @JsonProperty("actionItems") + private String actionItems; - private List aiActionItemsList; + @JsonProperty("summary") + private String summary; + + @JsonProperty("tone") + private String tone; + + private List actionItemsList; public AudioData() { } - public AudioData(String id, String audioAsText, String aiActionItems) { + public AudioData(String id, String audioAsText, String actionItems, String summary, String tone) { this.setId(id); this.audioAsText = audioAsText; - this.aiActionItems = aiActionItems; + this.actionItems = actionItems; + this.summary = summary; + this.tone = tone; - this.setAiActionItemsList(this.aiActionItems); + this.setActionItemsList(this.actionItems); } public void setId(String id) { @@ -43,18 +51,30 @@ public void setAudioAsText(String audioAsText) { public String getAudioAsText() { return this.audioAsText; } - public void setAiActionItems(String aiActionItems) { - this.aiActionItems = aiActionItems; - this.setAiActionItemsList(this.aiActionItems); + public void setActionItems(String actionItems) { + this.actionItems = actionItems; + this.setActionItemsList(this.actionItems); + } + public String getActionItems() { + return this.actionItems; + } + public List getActionItemsList() { + return this.actionItemsList; + } + public void setActionItemsList(String actionItems) { + this.actionItemsList = List.of(actionItems.split("- ")); + this.actionItemsList = this.actionItemsList.subList(1, this.actionItemsList.size()); } - public String getAiActionItems() { - return this.aiActionItems; + public void setSummary(String summary) { + this.summary = summary; } - public List getAiActionItemsList() { - return this.aiActionItemsList; + public String getSummary() { + return this.summary; } - public void setAiActionItemsList(String aiActionItems) { - this.aiActionItemsList = List.of(aiActionItems.split("- ")); - this.aiActionItemsList = this.aiActionItemsList.subList(1, this.aiActionItemsList.size()); + public void setTone(String tone) { + this.tone = tone; } + public String getTone() { + return this.tone; + } } diff --git a/petstore/petstoreapp/src/main/resources/templates/audioSearch.html b/petstore/petstoreapp/src/main/resources/templates/audioSearch.html index 39dbf4ed..a99823b5 100644 --- a/petstore/petstoreapp/src/main/resources/templates/audioSearch.html +++ b/petstore/petstoreapp/src/main/resources/templates/audioSearch.html @@ -51,23 +51,32 @@
Spinner - -
- AI Action Items:
-
-
- -
+
+ Summary:
+ + Spinner +
+
+ Tone:
+ + Spinner +
+
+ Action Items:
+
+
+ +
+
+ Spinner
- Spinner
-