package tv.pluto.mongo.entities.channels;

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

@Data
public class CustomReferenceValue {
  @BsonRepresentation(BsonType.OBJECT_ID)
  private String id;

  @BsonRepresentation(BsonType.OBJECT_ID)
  private String value;

  private String type;

  public String getId() {
    return id == null ? "" : id;
  }

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

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