diff options
author | Nancy Chen <nancychen@google.com> | 2015-03-19 03:50:45 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-03-19 03:50:46 +0000 |
commit | 993e5cc6dcedf3ce40b99b530c9702457574d420 (patch) | |
tree | 3401b5fb34f64f36bac0ae3d8a959eb3d762fab6 /telecomm/java/android/telecom | |
parent | d4f5aaf775c7c7bcc0bc208a2d8d5e4c52d20791 (diff) | |
parent | d3e28b78a3107dd5eb00ac3f6130d9fcbc2116ad (diff) | |
download | frameworks_base-993e5cc6dcedf3ce40b99b530c9702457574d420.zip frameworks_base-993e5cc6dcedf3ce40b99b530c9702457574d420.tar.gz frameworks_base-993e5cc6dcedf3ce40b99b530c9702457574d420.tar.bz2 |
Merge "Add voicemail builder method for updating/syncing."
Diffstat (limited to 'telecomm/java/android/telecom')
-rw-r--r-- | telecomm/java/android/telecom/Voicemail.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/Voicemail.java b/telecomm/java/android/telecom/Voicemail.java index 864c6b1..a884c5f 100644 --- a/telecomm/java/android/telecom/Voicemail.java +++ b/telecomm/java/android/telecom/Voicemail.java @@ -57,6 +57,16 @@ public class Voicemail implements Parcelable { } /** + * Create a {@link Builder} for a {@link Voicemail} to be updated (or deleted). + * <p> + * The id and source data fields are mandatory for update - id is necessary for updating the + * database and source data is necessary for updating the server. + */ + public static Builder createForUpdate(long id, String sourceData) { + return new Builder().setId(id).setSourceData(sourceData); + } + + /** * Builder pattern for creating a {@link Voicemail}. The builder must be created with the * {@link #createForInsertion(long, String)} method. * <p> |