Skip to content

Commit cd543ad

Browse files
committed
Merge branch 'master' of https://github.com/VladimirKhil/SI
2 parents 9ad32d5 + eb4e190 commit cd543ad

10 files changed

+13
-375
lines changed

src/Common/SI.GameServer.Contract/HostInfo.cs

-10
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@ public sealed class HostInfo
1010
/// </summary>
1111
public string Name { get; set; } = "";
1212

13-
/// <summary>
14-
/// Server hostname.
15-
/// </summary>
16-
public string Host { get; set; } = "";
17-
18-
/// <summary>
19-
/// Port number for TCP-based connections.
20-
/// </summary>
21-
public int Port { get; set; }
22-
2313
[Obsolete]
2414
public string PackagesPublicBaseUrl { get; set; } = "";
2515

src/Common/SIPackages/Atom.cs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ namespace SIPackages;
88
/// <summary>
99
/// Defines a question scenario minimal item.
1010
/// </summary>
11+
[Obsolete]
1112
internal sealed class Atom : PropertyChangedNotifier, ITyped, IEquatable<Atom>
1213
{
1314
[DebuggerBrowsable(DebuggerBrowsableState.Never)]

src/Common/SIPackages/CollectionNames.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ public static class CollectionNames
3939
/// <returns>Found collection name or null.</returns>
4040
public static string? TryGetCollectionName(string mediaType) => mediaType switch
4141
{
42-
AtomTypes.Image => ImagesStorageName,
43-
AtomTypes.Audio or AtomTypes.AudioNew => AudioStorageName,
44-
AtomTypes.Video => VideoStorageName,
45-
AtomTypes.Html => HtmlStorageName,
42+
ContentTypes.Image => ImagesStorageName,
43+
ContentTypes.Audio => AudioStorageName,
44+
ContentTypes.Video => VideoStorageName,
45+
ContentTypes.Html => HtmlStorageName,
4646
_ => null,
4747
};
4848

src/Common/SIPackages/ContentItem.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public string Placement
109109
}
110110
}
111111

112-
private string GetDefaultPlacement() => (_type == ContentTypes.Audio || _type == AtomTypes.Audio) ? ContentPlacements.Background : ContentPlacements.Screen;
112+
private string GetDefaultPlacement() => _type == ContentTypes.Audio ? ContentPlacements.Background : ContentPlacements.Screen;
113113

114114
/// <summary>
115115
/// Content play duration.
@@ -156,7 +156,7 @@ public bool WaitForFinish
156156
/// <inheritdoc />
157157
public override string ToString()
158158
{
159-
if (_type == AtomTypes.Text && _placement == ContentPlacements.Screen)
159+
if (_type == ContentTypes.Text && _placement == ContentPlacements.Screen)
160160
{
161161
return _value;
162162
}
@@ -235,7 +235,7 @@ public void WriteXml(XmlWriter writer)
235235
{
236236
writer.WriteAttributeString("placement", _placement);
237237
}
238-
else if (_type == ContentTypes.Audio || _type == AtomTypes.Audio) // For backward compatibility; remove later
238+
else if (_type == ContentTypes.Audio)
239239
{
240240
writer.WriteAttributeString("placement", GetDefaultPlacement());
241241
}
@@ -258,7 +258,7 @@ public void WriteXml(XmlWriter writer)
258258
{
259259
Duration = _duration,
260260
IsRef = _isRef,
261-
Placement = _placement,
261+
_placement = _placement,
262262
WaitForFinish = _waitForFinish,
263263
Type = _type,
264264
Value = _value

src/Common/SIPackages/Helpers/ExtractedFileNamingModes.cs

-23
This file was deleted.

src/Common/SIPackages/Helpers/MaxLengthStream.cs

-61
This file was deleted.

src/Common/SIPackages/Helpers/ZipFileExtensionsPatched.cs

-72
This file was deleted.

0 commit comments

Comments
 (0)