47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
using _0_Framework.Domain;
|
|
using AccountManagement.Domain.AdminResponseMediaAgg;
|
|
using AccountManagement.Domain.ClientResponseMediaAgg;
|
|
using AccountManagement.Domain.TaskMediaAgg;
|
|
using AccountManagement.Domain.TicketMediasAgg;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AccountManagement.Domain.MediaAgg;
|
|
|
|
public class Media : EntityBase
|
|
{
|
|
public Media(string path, string type, string category, string serviceName)
|
|
{
|
|
|
|
Path = path;
|
|
Type = type;
|
|
Category = category;
|
|
ServiceName = serviceName;
|
|
|
|
}
|
|
|
|
|
|
//مسیر ذخیره فایل
|
|
public string Path { get; private set; }
|
|
|
|
//نوع ذخیره فایل
|
|
public string Type { get; private set; }
|
|
|
|
//دسته بندی ذخیره فایل
|
|
public string Category { get; private set; }
|
|
|
|
//نام ماژولی که رکورد را ایجاد کرده
|
|
public string ServiceName { get; private set; }
|
|
|
|
public List<TaskMedia> TaskMedias { get; set; }
|
|
public List<AdminResponseMedia> AdminResponseMedias { get; set; }
|
|
public List<ClientResponseMedia> ClientResponseMedias { get; set; }
|
|
public List<TicketMedia> TicketMedias { get; set; }
|
|
|
|
public void Edit(string path, string type, string category)
|
|
{
|
|
Path = path;
|
|
Type = type;
|
|
Category = category;
|
|
}
|
|
|
|
} |