Add operation kind

This commit is contained in:
2025-11-16 17:41:58 +09:00
parent 6abff9cc7e
commit a4055bee7e
10 changed files with 129 additions and 8 deletions

View File

@ -17,6 +17,12 @@ namespace Hcs.WebApp.Data.Hcs
ParseHousesData_15_7_0_1
}
public enum OperationKind
{
Remote,
Parse
}
public int Id { get; set; }
public int CampaignId { get; set; }
@ -41,5 +47,14 @@ namespace Hcs.WebApp.Data.Hcs
[NotMapped]
public bool Completed => EndedAt.HasValue;
[NotMapped]
public OperationKind Kind => Type switch
{
OperationType.NsiCommon_ExportNsiItem_15_7_0_1 or
OperationType.Nsi_ExportNsiItem_15_7_0_1 => OperationKind.Remote,
OperationType.ParseHousesData_15_7_0_1 => OperationKind.Parse
};
}
}