diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-02-03 00:51:17 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-02-03 00:51:17 +0000 |
commit | a0bd92e4873b22353d96b0752a29562fd243634e (patch) | |
tree | f3dc9deba2708820071417dba5bad88108797b88 /java/com/android/dialer/voicemail/model | |
parent | e885c6acb4910e45c2313c9715aff137c5ca9357 (diff) | |
parent | a4ddbac290d81e6f1b9988e084a7a9bb2254c3e8 (diff) |
Merge "Add Support for transcription state in the AnnotatedCallLog"
Diffstat (limited to 'java/com/android/dialer/voicemail/model')
-rw-r--r-- | java/com/android/dialer/voicemail/model/VoicemailEntry.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/java/com/android/dialer/voicemail/model/VoicemailEntry.java b/java/com/android/dialer/voicemail/model/VoicemailEntry.java index f17a23e54..5830fb17e 100644 --- a/java/com/android/dialer/voicemail/model/VoicemailEntry.java +++ b/java/com/android/dialer/voicemail/model/VoicemailEntry.java @@ -20,6 +20,7 @@ import android.support.annotation.NonNull; import android.support.annotation.Nullable; import com.android.dialer.DialerPhoneNumber; import com.android.dialer.NumberAttributes; +import com.android.dialer.compat.android.provider.VoicemailCompat; import com.google.auto.value.AutoValue; /** Data class containing the contents of a voicemail entry from the AnnotatedCallLog. */ @@ -34,7 +35,8 @@ public abstract class VoicemailEntry { .setNumberAttributes(NumberAttributes.getDefaultInstance()) .setDuration(0) .setCallType(0) - .setIsRead(0); + .setIsRead(0) + .setTranscriptionState(VoicemailCompat.TRANSCRIPTION_NOT_STARTED); } public abstract int id(); @@ -44,7 +46,6 @@ public abstract class VoicemailEntry { @NonNull public abstract DialerPhoneNumber number(); - @Nullable public abstract String formattedNumber(); @@ -65,6 +66,8 @@ public abstract class VoicemailEntry { public abstract NumberAttributes numberAttributes(); + public abstract int transcriptionState(); + /** Builder for {@link VoicemailEntry}. */ @AutoValue.Builder public abstract static class Builder { @@ -91,6 +94,8 @@ public abstract class VoicemailEntry { public abstract Builder setNumberAttributes(NumberAttributes numberAttributes); + public abstract Builder setTranscriptionState(int transcriptionState); + public abstract VoicemailEntry build(); } } |