mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Add news type enumeration.
This commit is contained in:
@@ -284,7 +284,7 @@ namespace Cicm.Database
|
|||||||
{
|
{
|
||||||
Id = int.Parse(dataRow["id"].ToString()),
|
Id = int.Parse(dataRow["id"].ToString()),
|
||||||
Date = dataRow["date"].ToString(),
|
Date = dataRow["date"].ToString(),
|
||||||
Type = int.Parse(dataRow["type"].ToString()),
|
Type = (NewsType)int.Parse(dataRow["type"].ToString()),
|
||||||
AffectedId = int.Parse(dataRow["added_id"].ToString())
|
AffectedId = int.Parse(dataRow["added_id"].ToString())
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,19 @@ namespace Cicm.Database.Schemas
|
|||||||
/// <summary>ID</summary>
|
/// <summary>ID</summary>
|
||||||
public int Id;
|
public int Id;
|
||||||
/// <summary>News type</summary>
|
/// <summary>News type</summary>
|
||||||
public int Type;
|
public NewsType Type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum NewsType : int
|
||||||
|
{
|
||||||
|
NewComputerInDb = 1,
|
||||||
|
NewConsoleInDb = 2,
|
||||||
|
NewComputerInCollection = 3,
|
||||||
|
NewConsoleInCollection = 4,
|
||||||
|
UpdatedComputerInDb = 5,
|
||||||
|
UpdatedConsoleInDb = 6,
|
||||||
|
UpdatedComputerInCollection = 7,
|
||||||
|
UpdatedConsoleInCollection = 8,
|
||||||
|
NewMoneyDonation = 9
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user