Home | History | Annotate | Download | only in core

Lines Matching full:voicemail

17 package com.example.android.voicemail.common.core;
28 * Provides a simple interface to manipulate voicemails within the voicemail content provider.
49 * Clears all voicemails accessible to this voicemail content provider.
56 * Inserts a new voicemail into the voicemail content provider.
58 * @param voicemail data to be inserted
59 * @return {@link Uri} of the newly inserted {@link Voicemail}
62 * <li>your voicemail is missing a timestamp</li>
64 * <li>your voicemail is missing the provider id field</li>
65 * <li>voicemail has an id (which would indicate that it has already been inserted)
69 public Uri insert(Voicemail voicemail);
72 * Returns the {@link Voicemail} whose provider data matches the given value.
74 * It is expected that there be one such voicemail. Returns null if no such voicemail exists,
77 public Voicemail findVoicemailBySourceData(String providerData);
80 * Returns the {@link Voicemail} corresponding to a given Uri. The uri must correspond to a
81 * unique voicemail record.
83 * Returns null if no voicemail was found that exactly matched the given uri.
85 public Voicemail findVoicemailByUri(Uri uri);
88 * Updates an existing voicemail in the content provider.
90 * Note that <b>only the fields that are set</b> on the {@link Voicemail} that you provide will
92 * voicemail as read, create a new {@link Voicemail} that is marked as read, and call update.
94 * @throws IllegalArgumentException if you provide a {@link Voicemail} that already has a Uri
95 * set, because we don't support altering the Uri of a voicemail, and this most
99 public int update(Uri uri, Voicemail voicemail);
102 * Sets the voicemail content from the supplied input stream.
107 * @throws IOException if there is a problem creating the file or no voicemail is found matching
114 * Sets the voicemail content from the supplied byte array.
116 * @throws IOException if there is a problem creating the file or no voicemail is found matching
123 * Fetch all the voicemails accessible to this voicemail content provider.
127 public List<Voicemail> getAllVoicemails();
139 public List<Voicemail> getAllVoicemails(VoicemailFilter filter,
143 * Returns the Uri for the voicemail with the specified message Id.