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