GroupInfoDto.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System;
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Model.SyncPlay
  4. {
  5. /// <summary>
  6. /// Class GroupInfoDto.
  7. /// </summary>
  8. public class GroupInfoDto
  9. {
  10. /// <summary>
  11. /// Initializes a new instance of the <see cref="GroupInfoDto"/> class.
  12. /// </summary>
  13. /// <param name="groupId">The group identifier.</param>
  14. /// <param name="groupName">The group name.</param>
  15. /// <param name="state">The group state.</param>
  16. /// <param name="participants">The participants.</param>
  17. /// <param name="lastUpdatedAt">The date when this DTO has been created.</param>
  18. public GroupInfoDto(Guid groupId, string groupName, GroupStateType state, IReadOnlyList<string> participants, DateTime lastUpdatedAt)
  19. {
  20. GroupId = groupId;
  21. GroupName = groupName;
  22. State = state;
  23. Participants = participants;
  24. LastUpdatedAt = lastUpdatedAt;
  25. }
  26. /// <summary>
  27. /// Gets the group identifier.
  28. /// </summary>
  29. /// <value>The group identifier.</value>
  30. public Guid GroupId { get; }
  31. /// <summary>
  32. /// Gets the group name.
  33. /// </summary>
  34. /// <value>The group name.</value>
  35. public string GroupName { get; }
  36. /// <summary>
  37. /// Gets the group state.
  38. /// </summary>
  39. /// <value>The group state.</value>
  40. public GroupStateType State { get; }
  41. /// <summary>
  42. /// Gets the participants.
  43. /// </summary>
  44. /// <value>The participants.</value>
  45. public IReadOnlyList<string> Participants { get; }
  46. /// <summary>
  47. /// Gets the date when this DTO has been created.
  48. /// </summary>
  49. /// <value>The date when this DTO has been created.</value>
  50. public DateTime LastUpdatedAt { get; }
  51. }
  52. }