Skip to content

Commit

Permalink
Change text to transcription
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrice6713 committed Jun 20, 2024
1 parent 4d3c6c1 commit 118ad83
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/main/java/com/bandwidth/voice/models/Track.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class Track {
@JsonInclude(JsonInclude.Include.NON_NULL)
private String track;
@JsonInclude(JsonInclude.Include.NON_NULL)
private String text;
private String transcription;
@JsonInclude(JsonInclude.Include.NON_NULL)
private Double confidence;

Expand All @@ -33,17 +33,17 @@ public Track() {
* Initialization constructor.
* @param detectedLanguage String value for detectedLanguag3.
* @param track String value for track.
* @param text String value for text.
* @param transcription String value for transcription.
* @param confidence Double value for confidence.
*/
public Track(
String detectedLanguage,
String track,
String text,
String transcription,
Double confidence) {
this.detectedLanguage = detectedLanguage;
this.track = track;
this.text = text;
this.transcription = transcription;
this.confidence = confidence;
}

Expand Down Expand Up @@ -84,21 +84,21 @@ public void setTrack(String track) {
}

/**
* Getter for Text.
* Getter for transcription.
* @return Returns the String
*/
@JsonGetter("text")
public String getText() {
return text;
@JsonGetter("transcription")
public String getTranscription() {
return transcription;
}

/**
* Setter for Text.
* @param text Value for String
* Setter for transcription.
* @param transcription Value for String
*/
@JsonSetter("text")
public void setText(String text) {
this.text = text;
@JsonSetter("transcription")
public void setTranscription(String transcription) {
this.transcription = transcription;
}

/**
Expand All @@ -125,7 +125,7 @@ public void setConfidence(Double confidence) {
*/
@Override
public String toString() {
return "Track [" + "detectedLanguage=" + detectedLanguage + ", track=" + track + ", text=" + text
return "Track [" + "detectedLanguage=" + detectedLanguage + ", track=" + track + ", transcription=" + transcription
+ ", confidence=" + confidence + "]";
}

Expand All @@ -138,7 +138,7 @@ public Builder toBuilder() {
Builder builder = new Builder()
.detectedLanguage(getDetectedLanguage())
.track(getTrack())
.text(getText())
.transcription(getTranscription())
.confidence(getConfidence());
return builder;
}
Expand All @@ -149,7 +149,7 @@ public Builder toBuilder() {
public static class Builder {
private String detectedLanguage;
private String track;
private String text;
private String transcription;
private Double confidence;


Expand All @@ -175,12 +175,12 @@ public Builder track(String track) {
}

/**
* Setter for text.
* @param text String value for text.
* Setter for transcription.
* @param transcription String value for transcription.
* @return Builder
*/
public Builder text(String text) {
this.text = text;
public Builder transcription(String transcription) {
this.transcription = transcription;
return this;
}

Expand All @@ -199,7 +199,7 @@ public Builder confidence(Double confidence) {
* @return {@link Track}
*/
public Track build() {
return new Track(detectedLanguage, track, text, confidence);
return new Track(detectedLanguage, track, transcription, confidence);
}
}
}

0 comments on commit 118ad83

Please sign in to comment.