implement Webinar and WebinarSubscriber Entity and Dto (s) and Data Requirements ...
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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>();
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user