mirror of
https://github.com/cadmium-im/zirconium-sharp.git
synced 2024-11-21 09:52:21 +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;
|
using Zirconium.Core.Models;
|
||||||
|
|
||||||
namespace ChatSubsystem.Storage.Models
|
namespace ChatSubsystem.Storage.Models
|
||||||
{
|
{
|
||||||
public class SyncRequest
|
public class SyncRequest
|
||||||
{
|
{
|
||||||
|
[JsonProperty("since")]
|
||||||
public EntityID Since { get; set; }
|
public EntityID Since { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("limit")]
|
||||||
public int Limit { get; set; }
|
public int Limit { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("chatID")]
|
||||||
public EntityID ChatID { get; set; }
|
public EntityID ChatID { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("syncDirection")]
|
||||||
public string SyncDirection { get; set; }
|
public string SyncDirection { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,12 +1,18 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using Newtonsoft.Json;
|
||||||
using Zirconium.Core.Models;
|
using Zirconium.Core.Models;
|
||||||
|
|
||||||
namespace ChatSubsystem.Storage.Models
|
namespace ChatSubsystem.Storage.Models
|
||||||
{
|
{
|
||||||
public class SyncResponse
|
public class SyncResponse
|
||||||
{
|
{
|
||||||
|
[JsonProperty("nextBatch")]
|
||||||
public EntityID NextBatch { get; set; }
|
public EntityID NextBatch { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("mentionedChats")]
|
||||||
public IList<Chat> MentionedChats { get; set; }
|
public IList<Chat> MentionedChats { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("events")]
|
||||||
public IList<Event> Events { get; set; }
|
public IList<Event> Events { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user