sync code

This commit is contained in:
2023-06-26 22:33:44 +08:00
parent 2d87e50dd0
commit 4bf330f824
26 changed files with 2644 additions and 62 deletions

View File

@@ -8,6 +8,9 @@ public class RecordItem
[Column("rid"), PrimaryKey, AutoIncrement]
public int Id { get; set; }
[Column("fid")]
public int FlowerId { get; set; }
[Column("eid")]
public int EventId { get; set; }
@@ -18,15 +21,16 @@ public class RecordItem
{
if (eventName == null)
{
string evtkey;
if (Constants.Events.TryGetValue(EventId, out var @event))
{
eventName = @event.Name;
evtkey = @event.Name;
}
else
{
eventName = Constants.EventUnknown;
evtkey = Constants.EventUnknown;
}
// TODO: i18n
eventName = LocalizationResource.GetText(evtkey);
}
return eventName;
}
@@ -41,6 +45,6 @@ public class RecordItem
[Column("byname")]
public string ByUserName { get; set; }
[Column("photo")]
public byte[] Photo { get; set; }
[Column("memo")]
public string Memo { get; set; }
}