mirror of https://github.com/abpframework/eventhub
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.6 KiB
50 lines
1.6 KiB
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using JetBrains.Annotations;
|
|
using Volo.Abp.Content;
|
|
|
|
namespace EventHub.Events
|
|
{
|
|
public class UpdateEventDto
|
|
{
|
|
//TODO: Add OrganizationId
|
|
|
|
[Required]
|
|
[StringLength(EventConsts.MaxTitleLength, MinimumLength = EventConsts.MinTitleLength)]
|
|
public string Title { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(EventConsts.MaxDescriptionLength, MinimumLength = EventConsts.MinDescriptionLength)]
|
|
public string Description { get; set; }
|
|
|
|
[CanBeNull]
|
|
public IRemoteStreamContent CoverImageStreamContent { get; set; }
|
|
|
|
[Required]
|
|
[DataType(DataType.DateTime)]
|
|
public DateTime StartTime { get; set; }
|
|
|
|
[Required]
|
|
[DataType(DataType.DateTime)]
|
|
public DateTime EndTime { get; set; }
|
|
|
|
public bool IsOnline { get; set; }
|
|
|
|
[CanBeNull]
|
|
[StringLength(EventConsts.MaxOnlineLinkLength, MinimumLength = EventConsts.MinOnlineLinkLength)]
|
|
public string OnlineLink { get; set; }
|
|
|
|
public Guid? CountryId { get; set; }
|
|
|
|
[CanBeNull]
|
|
[StringLength(EventConsts.MaxCityLength, MinimumLength = EventConsts.MinCityLength)]
|
|
public string City { get; set; }
|
|
|
|
[CanBeNull]
|
|
[StringLength(EventConsts.MaxLanguageLength, MinimumLength = EventConsts.MinLanguageLength)]
|
|
public string Language { get; set; }
|
|
|
|
[Range(1, int.MaxValue)]
|
|
public int? Capacity { get; set; }
|
|
}
|
|
}
|
|
|