package com.google.tripmeout.frontend;

import com.google.auto.value.AutoValue;

@AutoValue
public abstract class PlaceVisitModel {
  public static enum UserMark {
    YES,
    MAYBE,
    NO
  }

  public static Builder builder() {
    return new AutoValue_PlaceVisitModel.Builder();
  }

  public abstract String placeId();
  public abstract String name();
  public abstract String tripId();
  public abstract UserMark userMark();
  public abstract double latitude();
  public abstract double longitude();

  @AutoValue.Builder
  public static abstract class Builder {
    public abstract Builder setPlaceId(String placeId);
    public abstract Builder setName(String name);
    public abstract Builder setTripId(String tripId);
    public abstract Builder setUserMark(UserMark userMark);
    public abstract Builder setLatitude(double latitude);
    public abstract Builder setLongitude(double longitude);
    public abstract PlaceVisitModel build();
  }
}

@@ -183,16 +183,29 @@
 ,%0A    NO
+,%0A    UNKNOWN
 %0A  %7D%0A%0A  
@@ -288,16 +288,46 @@
 uilder()
+.setUserMark(UserMark.UNKNOWN)
 ;%0A  %7D%0A%0A 

add unknown enum, make unknown default