23 lines
773 B
C#
23 lines
773 B
C#
|
|
using BotSharp.Abstraction.Loggers.Models;
|
||
|
|
using BotSharp.Abstraction.Repositories;
|
||
|
|
|
||
|
|
namespace BotSharp.Core.Conversations.Services;
|
||
|
|
|
||
|
|
public partial class ConversationService
|
||
|
|
{
|
||
|
|
public async Task<List<ConversationContentLogModel>> GetConversationContentLogs(string conversationId)
|
||
|
|
{
|
||
|
|
var db = _services.GetRequiredService<IBotSharpRepository>();
|
||
|
|
var logs = db.GetConversationContentLogs(conversationId);
|
||
|
|
return await Task.FromResult(logs);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
public async Task<List<ConversationStateLogModel>> GetConversationStateLogs(string conversationId)
|
||
|
|
{
|
||
|
|
var db = _services.GetRequiredService<IBotSharpRepository>();
|
||
|
|
var logs = db.GetConversationStateLogs(conversationId);
|
||
|
|
return await Task.FromResult(logs);
|
||
|
|
}
|
||
|
|
}
|