Class Sentence
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.intelligence.v2.transcript.Sentence
-
- All Implemented Interfaces:
Serializable
public class Sentence extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static Sentence
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Sentence object using the provided ObjectMapper.static Sentence
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Sentence object using the provided ObjectMapper.BigDecimal
getConfidence()
BigDecimal
getEndTime()
Integer
getMediaChannel()
Integer
getSentenceIndex()
String
getSid()
BigDecimal
getStartTime()
String
getTranscript()
int
hashCode()
static SentenceReader
reader(String pathTranscriptSid)
-
-
-
Method Detail
-
reader
public static SentenceReader reader(String pathTranscriptSid)
-
fromJson
public static Sentence fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Sentence object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Sentence object represented by the provided JSON
-
fromJson
public static Sentence fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Sentence object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Sentence object represented by the provided JSON
-
getMediaChannel
public final Integer getMediaChannel()
-
getSentenceIndex
public final Integer getSentenceIndex()
-
getStartTime
public final BigDecimal getStartTime()
-
getEndTime
public final BigDecimal getEndTime()
-
getTranscript
public final String getTranscript()
-
getSid
public final String getSid()
-
getConfidence
public final BigDecimal getConfidence()
-
-