Class ReceiptContent
Content of m.receipt: event ID, then receipt type, then user ID.
Inheritance
ReceiptContent
Implements
Inherited Members
Namespace: Uniform.Matrix.Protocol.Core
Assembly: Uniform.Matrix.Protocol.Core.dll
Syntax
public sealed class ReceiptContent : Dictionary<string, Dictionary<string, Dictionary<string, ReceiptInfo>>>, IDictionary<string, Dictionary<string, Dictionary<string, ReceiptInfo>>>, ICollection<KeyValuePair<string, Dictionary<string, Dictionary<string, ReceiptInfo>>>>, IReadOnlyDictionary<string, Dictionary<string, Dictionary<string, ReceiptInfo>>>, IReadOnlyCollection<KeyValuePair<string, Dictionary<string, Dictionary<string, ReceiptInfo>>>>, IEnumerable<KeyValuePair<string, Dictionary<string, Dictionary<string, ReceiptInfo>>>>, IDictionary, ICollection, IEnumerable, IDeserializationCallback, ISerializable
Examples
foreach ((string eventId, string receiptType, string userId, ReceiptInfo info) in receipts.Flatten())
Console.WriteLine($"{userId} read up to {eventId}");
Methods
| Edit this page View SourceFlatten()
List every receipt as one tuple.
Declaration
public IEnumerable<(string EventId, string ReceiptType, string UserId, ReceiptInfo Info)> Flatten()
Returns
| Type | Description |
|---|---|
| IEnumerable<(string EventId, string ReceiptType, string UserId, ReceiptInfo Info)> |