blob: 1a84fd2421b71e5f4d139a2086d6336d9840648c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
using LibMatrix;
using LibMatrix.Responses;
namespace MxApiExtensions.Classes.LibMatrix;
/// <summary>
/// Generic room info, this will most likely be out of date due to caching!
/// This is only useful for giving a rough idea of the room state.
/// </summary>
public class RoomInfoEntry {
public string RoomId { get; set; }
public List<StateEventResponse?> RoomState { get; set; }
public int StateCount { get; set; }
public Dictionary<string, int> MemberCounts { get; set; } = new();
// [JsonIgnore]
public DateTime ExpiresAt { get; set; } = DateTime.Now.AddMinutes(1);
}
|