jellyfin/MediaBrowser.Model/SyncPlay/GroupInfoDto.cs

59 lines
1.9 KiB
C#
Raw Normal View History

using System;
2020-05-09 08:34:07 -04:00
using System.Collections.Generic;
2020-05-06 17:42:53 -04:00
namespace MediaBrowser.Model.SyncPlay
2020-04-01 11:52:42 -04:00
{
/// <summary>
/// Class GroupInfoDto.
2020-04-01 11:52:42 -04:00
/// </summary>
2020-05-12 03:08:35 -04:00
public class GroupInfoDto
2020-04-01 11:52:42 -04:00
{
/// <summary>
/// Initializes a new instance of the <see cref="GroupInfoDto"/> class.
/// </summary>
/// <param name="groupId">The group identifier.</param>
/// <param name="groupName">The group name.</param>
/// <param name="state">The group state.</param>
/// <param name="participants">The participants.</param>
/// <param name="lastUpdatedAt">The date when this DTO has been created.</param>
public GroupInfoDto(Guid groupId, string groupName, GroupStateType state, IReadOnlyList<string> participants, DateTime lastUpdatedAt)
{
GroupId = groupId;
GroupName = groupName;
State = state;
Participants = participants;
LastUpdatedAt = lastUpdatedAt;
}
2020-04-01 11:52:42 -04:00
/// <summary>
/// Gets the group identifier.
2020-04-01 11:52:42 -04:00
/// </summary>
/// <value>The group identifier.</value>
public Guid GroupId { get; }
2020-04-01 11:52:42 -04:00
/// <summary>
/// Gets the group name.
2020-04-01 11:52:42 -04:00
/// </summary>
/// <value>The group name.</value>
public string GroupName { get; }
2020-04-01 11:52:42 -04:00
/// <summary>
/// Gets the group state.
2020-04-01 11:52:42 -04:00
/// </summary>
/// <value>The group state.</value>
public GroupStateType State { get; }
2020-04-01 11:52:42 -04:00
/// <summary>
/// Gets the participants.
2020-04-01 11:52:42 -04:00
/// </summary>
2020-04-21 17:37:37 -04:00
/// <value>The participants.</value>
public IReadOnlyList<string> Participants { get; }
/// <summary>
/// Gets the date when this DTO has been created.
/// </summary>
/// <value>The date when this DTO has been created.</value>
public DateTime LastUpdatedAt { get; }
2020-04-01 11:52:42 -04:00
}
}