1 /* 2 * Copyright (C) 2017 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License 15 */ 16 17 package com.android.dialer.voicemail.datasources; 18 19 import com.google.auto.value.AutoValue; 20 21 /** Dummy voicemail data class to allow us to work on the UI for the new voicemail tab. */ 22 @AutoValue 23 public abstract class VoicemailData { name()24 public abstract String name(); 25 location()26 public abstract String location(); 27 date()28 public abstract String date(); 29 duration()30 public abstract String duration(); 31 transcription()32 public abstract String transcription(); 33 builder()34 public static Builder builder() { 35 return new AutoValue_VoicemailData.Builder(); 36 } 37 38 /** Creates instances of {@link VoicemailData}. */ 39 @AutoValue.Builder 40 public abstract static class Builder { setName(String value)41 public abstract Builder setName(String value); 42 setLocation(String value)43 public abstract Builder setLocation(String value); 44 setDate(String value)45 public abstract Builder setDate(String value); 46 setDuration(String value)47 public abstract Builder setDuration(String value); 48 setTranscription(String value)49 public abstract Builder setTranscription(String value); 50 build()51 public abstract VoicemailData build(); 52 } 53 } 54