using ConstructorAppUI.Helpers; using static ConstructorApp.EntityLayer.Entities.Project; namespace ConstructorAppUI.Dtos.ProjectDtos { public class ResultProjectDto { public int ProjectID { get; set; } public string? CoverUrl { get; set; } public DateOnly Date { get; set; } public string? Title { get; set; } public string? Location { get; set; } public string? ShortDescription { get; set; } //Exterior design public string? LongDescription { get; set; } public string? GoogleMapIFrame { get; set; } public string? VideoUrl { get; set; } public string? FloorPlanUrl { get; set; } public bool IsActive { get; set; } //0=Pasif 1=Aktif public string? Slug { get; set; } public ProjectStatus Status { get; set; } public List? ImageUrls { get; set; } // embed URL üretici public string? EmbedVideoUrl => !string.IsNullOrEmpty(VideoUrl) ? $"https://www.youtube.com/embed/{YouTubeHelper.ExtractVideoId(VideoUrl)}?autoplay=1" : null; } }