mirror of
https://github.com/cadmium-im/zirconium-sharp.git
synced 2024-12-22 00:41:51 +00:00
Add JsonProperty to Sync Request/Response model
This commit is contained in:
parent
a565a0e330
commit
2e72d8377e
@ -1,12 +1,20 @@
|
||||
using Newtonsoft.Json;
|
||||
using Zirconium.Core.Models;
|
||||
|
||||
namespace ChatSubsystem.Storage.Models
|
||||
{
|
||||
public class SyncRequest
|
||||
{
|
||||
[JsonProperty("since")]
|
||||
public EntityID Since { get; set; }
|
||||
|
||||
[JsonProperty("limit")]
|
||||
public int Limit { get; set; }
|
||||
|
||||
[JsonProperty("chatID")]
|
||||
public EntityID ChatID { get; set; }
|
||||
|
||||
[JsonProperty("syncDirection")]
|
||||
public string SyncDirection { get; set; }
|
||||
}
|
||||
}
|
@ -1,12 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
using Zirconium.Core.Models;
|
||||
|
||||
namespace ChatSubsystem.Storage.Models
|
||||
{
|
||||
public class SyncResponse
|
||||
{
|
||||
[JsonProperty("nextBatch")]
|
||||
public EntityID NextBatch { get; set; }
|
||||
|
||||
[JsonProperty("mentionedChats")]
|
||||
public IList<Chat> MentionedChats { get; set; }
|
||||
|
||||
[JsonProperty("events")]
|
||||
public IList<Event> Events { get; set; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user