package tv.pluto.mongo.entities.episodes;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.BsonType;
import org.bson.codecs.pojo.annotations.BsonRepresentation;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CustomReference {
  @BsonRepresentation(BsonType.OBJECT_ID)
  private String id;

  private String type = "";
  private String value = "";

  public String getType() {
    return type == null ? "" : type;
  }

  public String getValue() {
    return value == null ? "" : value;
  }
}
