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