using PrivaPub.ClientModels.Resources; using System.ComponentModel.DataAnnotations; namespace PrivaPub.ClientModels.Group { public class UpdateGroupForm { [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorsResource))] public string AvatarId { get; set; } [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorsResource))] public string GroupId { get; set; } [StringLength(64, ErrorMessageResourceName = "MaxLengthString", ErrorMessageResourceType = typeof(ErrorsResource))] public string Name { get; set; } [StringLength(2000, ErrorMessageResourceName = "MaxLengthString", ErrorMessageResourceType = typeof(ErrorsResource))] public string Description { get; set; } public string InvitationPassword { get; set; } public bool RemoveInvitationPassword { get; set; } public bool RegenerateInvitationCode { get; set; } public bool? IsDiscoverable { get; set; } public bool? ManuallyApprovesMembers { get; set; } } }