using System; namespace Jellyfin.Data.Entities.Libraries { /// /// An entity that holds metadata for a photo. /// public class PhotoMetadata : Metadata { /// /// Initializes a new instance of the class. /// /// The title or name of the photo. /// ISO-639-3 3-character language codes. /// The photo. public PhotoMetadata(string title, string language, Photo photo) : base(title, language) { if (photo == null) { throw new ArgumentNullException(nameof(photo)); } photo.PhotoMetadata.Add(this); } /// /// Initializes a new instance of the class. /// /// /// Default constructor. Protected due to required properties, but present because EF needs it. /// protected PhotoMetadata() { } } }