fix: make serialisable properties public

This commit is contained in:
Anna 2024-01-03 23:30:54 -05:00
parent 94ae2f65c6
commit 8eed38b67f
Signed by: anna
GPG Key ID: D0943384CD9F87D1
1 changed files with 7 additions and 4 deletions

View File

@ -11,7 +11,10 @@ internal class QuestionManager : IDisposable, IReadOnlyList<IQuestion> {
private Plugin Plugin { get; }
private HttpClient Http { get; }
private QuestionsResponse _questions = new();
private QuestionsResponse _questions = new() {
Page = new(),
};
private Guid _lastSeenActive = Guid.Empty;
private int _page = 1;
@ -128,9 +131,9 @@ internal class QuestionManager : IDisposable, IReadOnlyList<IQuestion> {
[Serializable]
private class QuestionsResponse {
internal IQuestion? Current { get; init; }
internal List<IQuestion> Page { get; init; }
internal bool HasNext { get; init; }
public IQuestion? Current { get; init; }
public List<IQuestion> Page { get; init; }
public bool HasNext { get; init; }
}
internal async Task Check() {