Add operation kind
This commit is contained in:
@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user