fix: make serialisable properties public
This commit is contained in:
parent
94ae2f65c6
commit
8eed38b67f
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue