Skip to content

Commit

Permalink
Header クラスは不要
Browse files Browse the repository at this point in the history
  • Loading branch information
torikizi committed Dec 29, 2024
1 parent 4951e6f commit eb88c0d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Sora/Sora.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ public enum SpotlightFocusRidType
R1,
R2,
}
public class Header
{
public List<string> content { get; set; } = new List<string>();
}
public class DataChannel
{
// 以下は設定必須
Expand All @@ -65,8 +61,7 @@ public class DataChannel
public int? MaxRetransmits;
public string? Protocol;
public bool? Compress;
public Header? Header;

public List<string>? Header;
}

public const string ActionBlock = "block";
Expand Down Expand Up @@ -461,7 +456,7 @@ public void Connect(Config config)
}
if (m.Header != null)
{
c.SetHeader(new SoraConf.Internal.Header { content = new List<string>(m.Header.content) });
c.SetHeader(new SoraConf.Internal.DataChannel.Header { content = m.Header });
}
cc.data_channels.Add(c);
}
Expand Down

0 comments on commit eb88c0d

Please sign in to comment.