namespace InstaSoftOfficeTool.Models { public class OfficeEdition { public string DisplayName { get; set; } public string Description { get; set; } public string ProductId { get; set; } public string Channel { get; set; } public bool IsVolume { get; set; } // MSI ISO telepítés (Office 2016) public string IsoUrl32 { get; set; } public string IsoUrl64 { get; set; } public bool IsMsiInstall => IsoUrl64 != null || IsoUrl32 != null; public string GetIsoUrl(string architecture) { return architecture == "32" ? IsoUrl32 : IsoUrl64; } public bool HasArchitecture(string architecture) { return architecture == "32" ? IsoUrl32 != null : IsoUrl64 != null; } public static OfficeEdition[] GetEditions(OfficeVersion version) { switch (version) { case OfficeVersion.Office2024: return new[] { new OfficeEdition { DisplayName = "Standard", Description = "Alapvet\u0151 irodai alkalmaz\u00e1sok: Word, Excel, PowerPoint, Outlook, OneNote", ProductId = "Standard2024Volume", Channel = "PerpetualVL2024", IsVolume = true }, new OfficeEdition { DisplayName = "Professional Plus", Description = "Teljes csomag: Word, Excel, PowerPoint, Outlook, Access, Publisher, OneNote", ProductId = "ProPlus2024Volume", Channel = "PerpetualVL2024", IsVolume = true }, new OfficeEdition { DisplayName = "Otthoni \u00e9s kisv\u00e1llalati verzi\u00f3", Description = "Word, Excel, PowerPoint, Outlook, OneNote \u2014 v\u00e1llalkoz\u00e1sokban is haszn\u00e1lhat\u00f3", ProductId = "HomeBusiness2024Retail", Channel = "Current", IsVolume = false } }; case OfficeVersion.Office2021: return new[] { new OfficeEdition { DisplayName = "Standard", Description = "Alapvet\u0151 irodai alkalmaz\u00e1sok: Word, Excel, PowerPoint, Outlook, OneNote", ProductId = "Standard2021Volume", Channel = "PerpetualVL2021", IsVolume = true }, new OfficeEdition { DisplayName = "Professional Plus", Description = "Teljes csomag: Word, Excel, PowerPoint, Outlook, Access, Publisher, OneNote", ProductId = "ProPlus2021Volume", Channel = "PerpetualVL2021", IsVolume = true }, new OfficeEdition { DisplayName = "Otthoni \u00e9s kisv\u00e1llalati verzi\u00f3", Description = "Word, Excel, PowerPoint, Outlook, OneNote \u2014 v\u00e1llalkoz\u00e1sokban is haszn\u00e1lhat\u00f3", ProductId = "HomeBusiness2021Retail", Channel = "Current", IsVolume = false } }; case OfficeVersion.Office2019: return new[] { new OfficeEdition { DisplayName = "Standard", Description = "Alapvet\u0151 irodai alkalmaz\u00e1sok: Word, Excel, PowerPoint, Outlook, OneNote", ProductId = "Standard2019Volume", Channel = "PerpetualVL2019", IsVolume = true }, new OfficeEdition { DisplayName = "Professional Plus", Description = "Teljes csomag: Word, Excel, PowerPoint, Outlook, Access, Publisher, OneNote, Skype for Business", ProductId = "ProPlus2019Volume", Channel = "PerpetualVL2019", IsVolume = true }, new OfficeEdition { DisplayName = "Otthoni \u00e9s kisv\u00e1llalati verzi\u00f3", Description = "Word, Excel, PowerPoint, Outlook, OneNote \u2014 v\u00e1llalkoz\u00e1sokban is haszn\u00e1lhat\u00f3", ProductId = "HomeBusiness2019Retail", Channel = "Current", IsVolume = false } }; case OfficeVersion.Office2016: return new[] { new OfficeEdition { DisplayName = "Standard", Description = "Alapvető irodai alkalmazások: Word, Excel, PowerPoint, Outlook, OneNote", ProductId = "Standard2016Volume", Channel = "PerpetualVL2019", IsVolume = true, IsoUrl32 = "https://soft.direct/Install/SW_DVD5_Office_2016_W32_Hungarian_MLF_X20-41370.iso", IsoUrl64 = "https://soft.direct/Install/SW_DVD5_Office_2016_W64_Hungarian_MLF_X20-41370.iso" }, new OfficeEdition { DisplayName = "Professional Plus", Description = "Teljes csomag: Word, Excel, PowerPoint, Outlook, Access, Publisher, OneNote, Skype for Business", ProductId = "ProPlus2016Volume", Channel = "PerpetualVL2019", IsVolume = true, IsoUrl64 = "https://soft.direct/Install/SW_DVD5_Office_Professional_Plus_2016_64Bit_Hungarian_MLF_X20-42439.ISO" } }; default: return new OfficeEdition[0]; } } } }