This commit is contained in:
2018-08-28 17:38:57 +00:00
parent 9f72d08c00
commit 1c5c9f6673

View File

@@ -77,12 +77,13 @@ namespace AyaNova.Biz
}).ToArray();
return ret;
}
/// <summary>
/// Get the event log for a specified User
/// </summary>
internal static async Task<AyaNova.Api.Controllers.EventLogController.UserEventLogItem[]> GetLogForUser(AyaNova.Api.Controllers.EventLogController.EventLogOptions opt, AyContext ct)
{
//Set up the query
@@ -101,13 +102,12 @@ namespace AyaNova.Biz
//Execute the query
var EventItems = await q.ToArrayAsync();
//convert the Event array to the correct return type array
//DateTime, ObjectType, ObjectId, Event, Textra
//convert the Event array to the correct return type array
var ret = EventItems.Select(m => new AyaNova.Api.Controllers.EventLogController.UserEventLogItem()
{
Date = m.Created,
ObjectType=m.AyType,
ObjectId= m.AyId,
ObjectType = m.AyType,
ObjectId = m.AyId,
Event = m.AyEvent,
Textra = m.Textra
}).ToArray();
@@ -117,35 +117,9 @@ namespace AyaNova.Biz
internal static string BuildLogEntry(bool userFormat, Event ev, List<KeyValuePair<string, string>> lt)
{
StringBuilder S = new StringBuilder();
//Object format:
//DateTime, UserId, ActionNumber, Textra
//User format:
//DateTime, ObjectType, ObjectId, ActionNumber, Textra
ev
switch (ev.AyEvent)
{
case AyaEvent.Created:
break;
}
return ":";
}
/////////////////////////////////////////////////////////////////////
}//eoc
}//eons