package chat.rocket.core.models;

import com.google.auto.value.AutoValue;
import javax.annotation.Nullable;

@AutoValue
public abstract class Spotlight {

  public abstract String getId();

  public abstract String getName();

  @Nullable
  public abstract String getUsername();

  @Nullable
  public abstract String getStatus();

  @Nullable
  public abstract String getType();

  @Nullable
  public boolean isChannel() {
    return Room.TYPE_CHANNEL.equals(getType());
  }

  @Nullable
  public boolean isPrivate() {
    return Room.TYPE_PRIVATE.equals(getType());
  }

  @Nullable
  public boolean isDirectMessage() {
    return Room.TYPE_DIRECT_MESSAGE.equals(getType());
  }

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

  @AutoValue.Builder
  public abstract static class Builder {

    public abstract Builder setId(String id);

    public abstract Builder setName(String name);

    public abstract Builder setUsername(String username);

    public abstract Builder setStatus(String status);

    public abstract Builder setType(String type);

    public abstract Spotlight build();
  }
}
@@ -70,42 +70,8 @@
 lue;
-%0Aimport javax.annotation.Nullable;
 %0A%0A@A
@@ -192,458 +192,41 @@
 %0A%0A  
-@Nullable%0A  public abstract String getUsername();%0A%0A  @Nullable%0A  public abstract String getStatus();%0A%0A  @Nullable%0A  public abstract String getType();%0A%0A  @Nullable%0A  public boolean isChannel() %7B%0A    return Room.TYPE_CHANNEL.equals(getType());%0A  %7D%0A%0A  @Nullable%0A  public boolean isPrivate() %7B%0A    return Room.TYPE_PRIVATE.equals(getType());%0A  %7D%0A%0A  @Nullable%0A  public boolean isDirectMessage() %7B%0A    return Room.TYPE_DIRECT_MESSAGE.equals(getType());%0A  %7D
+public abstract String getType();
 %0A%0A  
@@ -485,122 +485,8 @@
 );%0A%0A
-    public abstract Builder setUsername(String username);%0A%0A    public abstract Builder setStatus(String status);%0A%0A
     

Update Spotlight.java