From 1938cb169caa407f427079ddfd432974a4ff143e Mon Sep 17 00:00:00 2001 From: feyris-tan <4116042+feyris-tan@users.noreply.github.com> Date: Sun, 22 Mar 2026 12:29:36 +0100 Subject: [PATCH] Fixed ToString() for RCS2 Linkage Descriptor. --- .../Model/Descriptors/0x4a_LinkageDescriptor.cs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/skyscraper8/InteractionChannel/Model/Descriptors/0x4a_LinkageDescriptor.cs b/skyscraper8/InteractionChannel/Model/Descriptors/0x4a_LinkageDescriptor.cs index 28bd375..d932039 100644 --- a/skyscraper8/InteractionChannel/Model/Descriptors/0x4a_LinkageDescriptor.cs +++ b/skyscraper8/InteractionChannel/Model/Descriptors/0x4a_LinkageDescriptor.cs @@ -64,19 +64,11 @@ namespace skyscraper5.src.InteractionChannel.Model.Descriptors public override string ToString() { - StringBuilder sb = new StringBuilder(); - sb.Append("ONID {0}, TSID {1}", OriginalNetworkId, TransportStreamId); - - if (PopulationIds != null) - { - for (int i = 0; i < PopulationIds.Length; i++) - { - sb.Append(", ({0},{1})", PopulationIds[i].Base, PopulationIds[i].Mask); - } - } - return sb.ToString(); + return String.Format("Link type {0}", LinkageType); } + + public DatabaseKeyRmtLinkage ToKey() { return new DatabaseKeyRmtLinkage(TransportStreamId, OriginalNetworkId, ServiceId, LinkageType, InteractiveNetworkId);