implement core SDK architecture, TextChannel services (orulj geci)
This commit is contained in:
@@ -13,6 +13,17 @@ namespace Chtn.CSharp.SDK.Models.Chat.TextChannel
|
||||
[JsonProperty("files")] public List<Attachment> Files { get; set; }
|
||||
}
|
||||
|
||||
public class GetPinnedMessagesReq
|
||||
{
|
||||
[JsonProperty("channelId")] public string ChannelId { get; set; }
|
||||
}
|
||||
|
||||
public class DeleteMessagesReq
|
||||
{
|
||||
[JsonProperty("channelId")] public string ChannelId { get; set; }
|
||||
[JsonProperty("messageIds")] public List<string> MessageIds { get; set; }
|
||||
}
|
||||
|
||||
public class ChannelPinMessageReq
|
||||
{
|
||||
[JsonProperty("channelId")] public string ChannelId { get; set; }
|
||||
@@ -24,4 +35,40 @@ namespace Chtn.CSharp.SDK.Models.Chat.TextChannel
|
||||
[JsonProperty("connId")] public string ConnId { get; set; }
|
||||
[JsonProperty("channelId")] public string ChannelId { get; set; }
|
||||
}
|
||||
|
||||
public class GetMessagesReq
|
||||
{
|
||||
[JsonProperty("channelId")] public string ChannelId { get; set; }
|
||||
[JsonProperty("limit")] public string Limit { get; set; }
|
||||
}
|
||||
|
||||
public class GetMessagePosReq
|
||||
{
|
||||
[JsonProperty("channelId")] public string ChannelId { get; set; }
|
||||
[JsonProperty("messageId")] public string MessageId { get; set; }
|
||||
}
|
||||
|
||||
public class GetMessagePosResp
|
||||
{
|
||||
[JsonProperty("position")] public string Position { get; set; }
|
||||
}
|
||||
|
||||
public class EditMessageReq
|
||||
{
|
||||
[JsonProperty("channelId")] public string ChannelId { get; set; }
|
||||
[JsonProperty("messageId")] public string MessageId { get; set; }
|
||||
[JsonProperty("newContent")] public string NewContent { get; set; }
|
||||
}
|
||||
|
||||
public class DeleteMessageReq
|
||||
{
|
||||
[JsonProperty("channelId")] public string ChannelId { get; set; }
|
||||
[JsonProperty("messageId")] public string MessageId { get; set; }
|
||||
}
|
||||
|
||||
public class ReadMessagesReq
|
||||
{
|
||||
[JsonProperty("channelId")] public string ChannelId { get; set; }
|
||||
[JsonProperty("lastMessageId")] public string LastMessageId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user