/*
 * (c) 2020 Pluto Inc.
 */
package tv.pluto.mongo.entities.common;

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 Output {
  @BsonRepresentation(BsonType.OBJECT_ID)
  private String _id = "";

  private String url = "";
  private String type = "";
  private Dimensions dimensions;

  public String getUrl() {
    return url == null ? "" : url;
  }

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

  public String get_id() {
    return _id == null ? "" : _id;
  }
}
