Commit e8549364 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Update Spotlight.java

parent 5ac503cb
package chat.rocket.core.models; package chat.rocket.core.models;
import com.google.auto.value.AutoValue; import com.google.auto.value.AutoValue;
import javax.annotation.Nullable;
@AutoValue @AutoValue
public abstract class Spotlight { public abstract class Spotlight {
...@@ -10,30 +9,8 @@ public abstract class Spotlight { ...@@ -10,30 +9,8 @@ public abstract class Spotlight {
public abstract String getName(); public abstract String getName();
@Nullable
public abstract String getUsername();
@Nullable
public abstract String getStatus();
@Nullable
public abstract String getType(); 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() { public static Spotlight.Builder builder() {
return new AutoValue_Spotlight.Builder(); return new AutoValue_Spotlight.Builder();
} }
...@@ -45,10 +22,6 @@ public abstract class Spotlight { ...@@ -45,10 +22,6 @@ public abstract class Spotlight {
public abstract Builder setName(String name); 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 Builder setType(String type);
public abstract Spotlight build(); public abstract Spotlight build();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment