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

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

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Source {
  @BsonRepresentation(BsonType.OBJECT_ID)
  private String id = "";

  private String file = "";
  private String type = "";
  private String encryption = "";

  public String getFile() {
    return file == null ? "" : file;
  }

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

  public String getEncryption() {
    return encryption == null ? "" : encryption;
  }

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