implement Webinar and WebinarSubscriber Entity and Dto (s) and Data Requirements ...

This commit is contained in:
2026-07-24 19:46:35 +03:30
parent cf6568e089
commit d2d3ac90b6
82 changed files with 1466 additions and 4889 deletions
View File
+4 -14
View File
@@ -5,24 +5,14 @@ using xWebinarService.Constants;
namespace xWebinarService.Models.Dtos
{
public class XWebinarDto : XBaseDto
public class XWebinarDto : XBaseGuidIDEntityDto
{
public Guid Id { get; set; }
public XResourceDto Title { get; set; }
public XResourceDto Description { get; set; }
public bool Enabled { get; set; }
public string OwnerId { get; set; }
public XPersonDto Owner { get; set; }
public XWebinarType Type { get; set; }
public XResourceDto Title { get; set; }
public DateTime CreatedOn { get; set; }
public bool Enabled { get; set; }
}
public class XWebinarSubscriberDto : XBaseDto
{
public int Id { get; set; }
public Guid WebinarId { get; set; }
public string SubscriberId { get; set; }
public XPersonDto Subscriber { get; set; }
public DateTime SubscribedOn { get; set; }
public XResourceDto Description { get; set; }
}
}
+14
View File
@@ -0,0 +1,14 @@
using System;
using xModels.Base;
using xModels.Dtos;
namespace xWebinarService.Models.Dtos
{
public class XWebinarSubscriberDto : XBaseIntIDEntityDto
{
public Guid WebinarId { get; set; }
public string SubscriberId { get; set; }
public XPersonDto Subscriber { get; set; }
public DateTime SubscribedOn { get; set; }
}
}
+1 -13
View File
@@ -49,18 +49,6 @@ namespace xWebinarService.Models.Entities
/// Specified Webinar Enabled or not ...
/// </summary>
/// <value></value>
public bool Enabled { get; set; }
}
/// <summary>
/// Webinar Subscriber ...
/// </summary>
public class XWebinarSubscriber : XBaseIntIDEntity
{
[Required]
public string SubscriberId { get; set; }
[Required]
public Guid WebinarId { get; set; }
public DateTime SubscribedOn { get; set; }
public bool Enabled { get; set; }
}
}
-13
View File
@@ -1,13 +0,0 @@
using System;
using System.Collections.Generic;
using xModels.Base;
using xPushService.Base;
namespace xWebinarService.Models.Entities
{
public class XWebinarGroupEntity : XBaseGuidIDEntity
{
public Guid WebinarId { get; set; }
public List<XHubConnectionDto> Connections { get; set; } = new List<XHubConnectionDto>();
}
}
+20
View File
@@ -0,0 +1,20 @@
using System;
using System.ComponentModel.DataAnnotations;
using xModels.Base;
namespace xWebinarService.Models.Entities
{
/// <summary>
/// Webinar Subscriber ...
/// </summary>
public class XWebinarSubscriber : XBaseIntIDEntity
{
[Required]
public string SubscriberId { get; set; }
[Required]
public Guid WebinarId { get; set; }
public DateTime SubscribedOn { get; set; }
}
}