< Summary - Jellyfin

Information
Class: MediaBrowser.Controller.SyncPlay.GroupMember
Assembly: MediaBrowser.Controller
File(s): /srv/git/jellyfin/MediaBrowser.Controller/SyncPlay/GroupMember.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 60
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%

File(s)

/srv/git/jellyfin/MediaBrowser.Controller/SyncPlay/GroupMember.cs

#LineLine coverage
 1#nullable disable
 2
 3using System;
 4using MediaBrowser.Controller.Session;
 5
 6namespace MediaBrowser.Controller.SyncPlay
 7{
 8    /// <summary>
 9    /// Class GroupMember.
 10    /// </summary>
 11    public class GroupMember
 12    {
 13        /// <summary>
 14        /// Initializes a new instance of the <see cref="GroupMember"/> class.
 15        /// </summary>
 16        /// <param name="session">The session.</param>
 17        public GroupMember(SessionInfo session)
 18        {
 019            SessionId = session.Id;
 020            UserId = session.UserId;
 021            UserName = session.UserName;
 022        }
 23
 24        /// <summary>
 25        /// Gets the identifier of the session.
 26        /// </summary>
 27        /// <value>The session identifier.</value>
 28        public string SessionId { get; }
 29
 30        /// <summary>
 31        /// Gets the identifier of the user.
 32        /// </summary>
 33        /// <value>The user identifier.</value>
 34        public Guid UserId { get; }
 35
 36        /// <summary>
 37        /// Gets the username.
 38        /// </summary>
 39        /// <value>The username.</value>
 40        public string UserName { get; }
 41
 42        /// <summary>
 43        /// Gets or sets the ping, in milliseconds.
 44        /// </summary>
 45        /// <value>The ping.</value>
 46        public long Ping { get; set; }
 47
 48        /// <summary>
 49        /// Gets or sets a value indicating whether this member is buffering.
 50        /// </summary>
 51        /// <value><c>true</c> if member is buffering; <c>false</c> otherwise.</value>
 52        public bool IsBuffering { get; set; }
 53
 54        /// <summary>
 55        /// Gets or sets a value indicating whether this member is following group playback.
 56        /// </summary>
 57        /// <value><c>true</c> to ignore member on group wait; <c>false</c> if they're following group playback.</value>
 58        public bool IgnoreGroupWait { get; set; }
 59    }
 60}