aries-framework-dotnet icon indicating copy to clipboard operation
aries-framework-dotnet copied to clipboard

Basic Message

Open natinas opened this issue 3 years ago • 1 comments

Hello, i have 2 questions for u.

  1. how is it possible to have the list of basic message that i sent to other agent ? like the method "ListAsync" in "ProofService", "CredentialService" or "ConnectionService"

  2. a little bit similar to the first, how is it possible to have the list of basic message that i received ?

thx for your help.

natinas avatar May 18 '21 12:05 natinas

You can try the below to get the list of BasicMessage

List<BasicMessageRecord> basicMessageRecords = await walletRecordService.SearchAsync<BasicMessageRecord>(AgentContext.Wallet, SearchQuery.Equal(nameof(BasicMessageRecord.ConnectionId), Connection.Record.Id), null, int.MaxValue);

sahil-khanna avatar Jun 04 '21 14:06 sahil-khanna