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