Enhance channel settings to include icon image support for IPTV
Updated the Channel and related DTOs to incorporate an optional IconImageId property, allowing for the specification of a channel icon for external IPTV players. Modified the UpdateChannelSettings command and its handler to accommodate this new property. Adjusted frontend components to manage the icon image, including selection and display functionality. Updated localization files to support new UI elements related to the IPTV icon. This enhancement improves the user experience by providing a visual representation of channels in IPTV applications.
This commit is contained in:
@@ -92,7 +92,7 @@ public class TelegramBotTests
|
||||
var userId = Guid.NewGuid();
|
||||
var code = TelegramLinkCode.Issue("abc123", userId, Now);
|
||||
var channel = Channel.Create("Мультреалити", "mult", Now);
|
||||
channel.UpdateSettings(channel.Name, isEnabled: true, null);
|
||||
channel.UpdateSettings(channel.Name, isEnabled: true, null, null);
|
||||
|
||||
await using (var seed = fixture.New())
|
||||
{
|
||||
@@ -145,7 +145,7 @@ public class TelegramBotTests
|
||||
{
|
||||
var fixture = new TestDb();
|
||||
var channel = Channel.Create("Мультреалити", "mult", Now);
|
||||
channel.UpdateSettings(channel.Name, isEnabled: true, null);
|
||||
channel.UpdateSettings(channel.Name, isEnabled: true, null, null);
|
||||
var subscriber = TelegramSubscriber.Create(100, Guid.NewGuid(), "viewer", Now);
|
||||
|
||||
await using (var seed = fixture.New())
|
||||
@@ -194,7 +194,7 @@ public class TelegramBotTests
|
||||
// один блок: зритель спрашивает «что дальше», а не «в каком порядке лежат файлы».
|
||||
var fixture = new TestDb();
|
||||
var channel = Channel.Create("Мультреалити", "mult", Now);
|
||||
channel.UpdateSettings(channel.Name, isEnabled: true, null);
|
||||
channel.UpdateSettings(channel.Name, isEnabled: true, null, null);
|
||||
var first = Show.Create("Симпсоны", ShowKind.Series);
|
||||
var second = Show.Create("Футурама", ShowKind.Series);
|
||||
var subscriber = TelegramSubscriber.Create(100, Guid.NewGuid(), "viewer", Now);
|
||||
@@ -250,7 +250,7 @@ public class TelegramBotTests
|
||||
// Два меню в чате — это две панели с разными галочками, и одна из них врёт. Старое снимаем.
|
||||
var fixture = new TestDb();
|
||||
var channel = Channel.Create("Мультреалити", "mult", Now);
|
||||
channel.UpdateSettings(channel.Name, isEnabled: true, null);
|
||||
channel.UpdateSettings(channel.Name, isEnabled: true, null, null);
|
||||
var subscriber = TelegramSubscriber.Create(100, Guid.NewGuid(), "viewer", Now);
|
||||
|
||||
await using (var seed = fixture.New())
|
||||
|
||||
Reference in New Issue
Block a user