aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller
diff options
context:
space:
mode:
authorgion <oancaionutandrei@gmail.com>2020-05-26 11:37:52 +0200
committergion <oancaionutandrei@gmail.com>2020-05-26 11:37:52 +0200
commite42bfc92f3e072a3d51dddce06bc90587e06791c (patch)
treeb436044e5886e310f8f5f1e466af13c042c90fda /MediaBrowser.Controller
parente4838b0faa2dafec9382abe8e00bd18be624a030 (diff)
Fix code issues
Diffstat (limited to 'MediaBrowser.Controller')
-rw-r--r--MediaBrowser.Controller/SyncPlay/GroupInfo.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/MediaBrowser.Controller/SyncPlay/GroupInfo.cs b/MediaBrowser.Controller/SyncPlay/GroupInfo.cs
index bda49bd1b..28a3ac505 100644
--- a/MediaBrowser.Controller/SyncPlay/GroupInfo.cs
+++ b/MediaBrowser.Controller/SyncPlay/GroupInfo.cs
@@ -16,12 +16,13 @@ namespace MediaBrowser.Controller.SyncPlay
/// <summary>
/// Default ping value used for sessions.
/// </summary>
- public readonly long DefaulPing = 500;
+ public long DefaulPing { get; } = 500;
+
/// <summary>
/// Gets or sets the group identifier.
/// </summary>
/// <value>The group identifier.</value>
- public readonly Guid GroupId = Guid.NewGuid();
+ public Guid GroupId { get; } = Guid.NewGuid();
/// <summary>
/// Gets or sets the playing item.
@@ -51,7 +52,7 @@ namespace MediaBrowser.Controller.SyncPlay
/// Gets the participants.
/// </summary>
/// <value>The participants, or members of the group.</value>
- public readonly Dictionary<string, GroupMember> Participants =
+ public Dictionary<string, GroupMember> Participants { get; } =
new Dictionary<string, GroupMember>(StringComparer.OrdinalIgnoreCase);
/// <summary>
@@ -85,7 +86,6 @@ namespace MediaBrowser.Controller.SyncPlay
/// Removes the session from the group.
/// </summary>
/// <param name="session">The session.</param>
-
public void RemoveSession(SessionInfo session)
{
if (!ContainsSession(session.Id.ToString()))
@@ -153,6 +153,7 @@ namespace MediaBrowser.Controller.SyncPlay
return true;
}
}
+
return false;
}