Dialogs nullable
This commit is contained in:
@@ -4,24 +4,24 @@ namespace Core.Models.Eft.Customization;
|
||||
|
||||
public class BuyClothingRequestData
|
||||
{
|
||||
[JsonPropertyName("Action")]
|
||||
public string Action { get; set; } = "CustomizationBuy";
|
||||
[JsonPropertyName("Action")]
|
||||
public string Action { get; set; } = "CustomizationBuy";
|
||||
|
||||
[JsonPropertyName("offer")]
|
||||
public string Offer { get; set; }
|
||||
[JsonPropertyName("offer")]
|
||||
public string? Offer { get; set; }
|
||||
|
||||
[JsonPropertyName("items")]
|
||||
public List<PaymentItemForClothing> Items { get; set; }
|
||||
[JsonPropertyName("items")]
|
||||
public List<PaymentItemForClothing>? Items { get; set; }
|
||||
}
|
||||
|
||||
public class PaymentItemForClothing
|
||||
{
|
||||
[JsonPropertyName("del")]
|
||||
public bool Del { get; set; }
|
||||
[JsonPropertyName("del")]
|
||||
public bool? Del { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
[JsonPropertyName("id")]
|
||||
public string? Id { get; set; }
|
||||
|
||||
[JsonPropertyName("count")]
|
||||
public int Count { get; set; }
|
||||
[JsonPropertyName("count")]
|
||||
public int? Count { get; set; }
|
||||
}
|
||||
@@ -4,21 +4,21 @@ namespace Core.Models.Eft.Customization;
|
||||
|
||||
public class CustomizationSetRequest
|
||||
{
|
||||
[JsonPropertyName("Action")]
|
||||
public string Action { get; set; } = "CustomizationSet";
|
||||
[JsonPropertyName("Action")]
|
||||
public string Action { get; set; } = "CustomizationSet";
|
||||
|
||||
[JsonPropertyName("customizations")]
|
||||
public List<CustomizationSetOption> Customizations { get; set; }
|
||||
[JsonPropertyName("customizations")]
|
||||
public List<CustomizationSetOption>? Customizations { get; set; }
|
||||
}
|
||||
|
||||
public class CustomizationSetOption
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
[JsonPropertyName("id")]
|
||||
public string? Id { get; set; }
|
||||
|
||||
[JsonPropertyName("type")]
|
||||
public string Type { get; set; }
|
||||
[JsonPropertyName("type")]
|
||||
public string? Type { get; set; }
|
||||
|
||||
[JsonPropertyName("source")]
|
||||
public string Source { get; set; }
|
||||
[JsonPropertyName("source")]
|
||||
public string? Source { get; set; }
|
||||
}
|
||||
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Customization;
|
||||
public class GetSuitsResponse
|
||||
{
|
||||
[JsonPropertyName("_id")]
|
||||
public string Id { get; set; }
|
||||
public string? Id { get; set; }
|
||||
|
||||
[JsonPropertyName("suites")]
|
||||
public List<string> Suites { get; set; }
|
||||
public List<string>? Suites { get; set; }
|
||||
}
|
||||
@@ -17,5 +17,5 @@ public class DeclineFriendRequestData : BaseFriendRequest
|
||||
public class BaseFriendRequest
|
||||
{
|
||||
[JsonPropertyName("profileId")]
|
||||
public string ProfileId { get; set; }
|
||||
public string? ProfileId { get; set; }
|
||||
}
|
||||
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Dialog;
|
||||
public class AddUserGroupMailRequest
|
||||
{
|
||||
[JsonPropertyName("dialogId")]
|
||||
public string DialogId { get; set; }
|
||||
public string? DialogId { get; set; }
|
||||
|
||||
[JsonPropertyName("uid")]
|
||||
public string Uid { get; set; }
|
||||
public string? Uid { get; set; }
|
||||
}
|
||||
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Dialog;
|
||||
public class ChangeGroupMailOwnerRequest
|
||||
{
|
||||
[JsonPropertyName("dialogId")]
|
||||
public string DialogId { get; set; }
|
||||
public string? DialogId { get; set; }
|
||||
|
||||
[JsonPropertyName("uid")]
|
||||
public string Uid { get; set; }
|
||||
public string? Uid { get; set; }
|
||||
}
|
||||
@@ -4,40 +4,40 @@ namespace Core.Models.Eft.Dialog;
|
||||
|
||||
public class ChatServer
|
||||
{
|
||||
[JsonPropertyName("_id")]
|
||||
public string Id { get; set; }
|
||||
|
||||
[JsonPropertyName("RegistrationId")]
|
||||
public int RegistrationId { get; set; }
|
||||
|
||||
[JsonPropertyName("VersionId")]
|
||||
public string VersionId { get; set; }
|
||||
|
||||
[JsonPropertyName("Ip")]
|
||||
public string Ip { get; set; }
|
||||
|
||||
[JsonPropertyName("Port")]
|
||||
public int Port { get; set; }
|
||||
|
||||
[JsonPropertyName("DateTime")]
|
||||
public long DateTime { get; set; }
|
||||
|
||||
[JsonPropertyName("Chats")]
|
||||
public List<Chat> Chats { get; set; }
|
||||
|
||||
[JsonPropertyName("Regions")]
|
||||
public List<string> Regions { get; set; }
|
||||
|
||||
/** Possibly removed */
|
||||
[JsonPropertyName("IsDeveloper")]
|
||||
public bool? IsDeveloper { get; set; }
|
||||
[JsonPropertyName("_id")]
|
||||
public string? Id { get; set; }
|
||||
|
||||
[JsonPropertyName("RegistrationId")]
|
||||
public int? RegistrationId { get; set; }
|
||||
|
||||
[JsonPropertyName("VersionId")]
|
||||
public string? VersionId { get; set; }
|
||||
|
||||
[JsonPropertyName("Ip")]
|
||||
public string? Ip { get; set; }
|
||||
|
||||
[JsonPropertyName("Port")]
|
||||
public int? Port { get; set; }
|
||||
|
||||
[JsonPropertyName("DateTime")]
|
||||
public long? DateTime { get; set; }
|
||||
|
||||
[JsonPropertyName("Chats")]
|
||||
public List<Chat>? Chats { get; set; }
|
||||
|
||||
[JsonPropertyName("Regions")]
|
||||
public List<string>? Regions { get; set; }
|
||||
|
||||
/** Possibly removed */
|
||||
[JsonPropertyName("IsDeveloper")]
|
||||
public bool? IsDeveloper { get; set; }
|
||||
}
|
||||
|
||||
public class Chat
|
||||
{
|
||||
[JsonPropertyName("_id")]
|
||||
public string Id { get; set; }
|
||||
|
||||
[JsonPropertyName("Members")]
|
||||
public int Members { get; set; }
|
||||
[JsonPropertyName("_id")]
|
||||
public string? Id { get; set; }
|
||||
|
||||
[JsonPropertyName("Members")]
|
||||
public int? Members { get; set; }
|
||||
}
|
||||
@@ -5,5 +5,5 @@ namespace Core.Models.Eft.Dialog;
|
||||
public class ClearMailMessageRequest
|
||||
{
|
||||
[JsonPropertyName("dialogId")]
|
||||
public string DialogId { get; set; }
|
||||
public string? DialogId { get; set; }
|
||||
}
|
||||
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Dialog;
|
||||
public class CreateGroupMailRequest
|
||||
{
|
||||
[JsonPropertyName("Name")]
|
||||
public string Name { get; set; }
|
||||
public string? Name { get; set; }
|
||||
|
||||
[JsonPropertyName("Users")]
|
||||
public List<string> Users { get; set; }
|
||||
public List<string>? Users { get; set; }
|
||||
}
|
||||
@@ -5,5 +5,5 @@ namespace Core.Models.Eft.Dialog;
|
||||
public class DeleteFriendRequest
|
||||
{
|
||||
[JsonPropertyName("friend_id")]
|
||||
public string FriendId { get; set; }
|
||||
public string? FriendId { get; set; }
|
||||
}
|
||||
@@ -5,11 +5,11 @@ namespace Core.Models.Eft.Dialog;
|
||||
public class FriendRequestData
|
||||
{
|
||||
[JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
public int? Status { get; set; }
|
||||
|
||||
[JsonPropertyName("requestId")]
|
||||
public string RequestId { get; set; }
|
||||
public string? RequestId { get; set; }
|
||||
|
||||
[JsonPropertyName("retryAfter")]
|
||||
public int RetryAfter { get; set; }
|
||||
public int? RetryAfter { get; set; }
|
||||
}
|
||||
@@ -4,12 +4,12 @@ namespace Core.Models.Eft.Dialog;
|
||||
|
||||
public class FriendRequestSendResponse
|
||||
{
|
||||
[JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
[JsonPropertyName("status")]
|
||||
public int? Status { get; set; }
|
||||
|
||||
[JsonPropertyName("requestId")]
|
||||
public string RequestId { get; set; }
|
||||
[JsonPropertyName("requestId")]
|
||||
public string? RequestId { get; set; }
|
||||
|
||||
[JsonPropertyName("retryAfter")]
|
||||
public int RetryAfter { get; set; }
|
||||
[JsonPropertyName("retryAfter")]
|
||||
public int? RetryAfter { get; set; }
|
||||
}
|
||||
@@ -5,12 +5,12 @@ namespace Core.Models.Eft.Dialog;
|
||||
|
||||
public class GetAllAttachmentsResponse
|
||||
{
|
||||
[JsonPropertyName("messages")]
|
||||
public List<Message> Messages { get; set; }
|
||||
[JsonPropertyName("messages")]
|
||||
public List<Message>? Messages { get; set; }
|
||||
|
||||
[JsonPropertyName("profiles")]
|
||||
public List<object> Profiles { get; set; } // Assuming 'any' translates to 'object'
|
||||
[JsonPropertyName("profiles")]
|
||||
public List<object> Profiles { get; set; } // Assuming 'any' translates to 'object'
|
||||
|
||||
[JsonPropertyName("hasMessagesWithRewards")]
|
||||
public bool HasMessagesWithRewards { get; set; }
|
||||
[JsonPropertyName("hasMessagesWithRewards")]
|
||||
public bool? HasMessagesWithRewards { get; set; }
|
||||
}
|
||||
@@ -5,5 +5,5 @@ namespace Core.Models.Eft.Dialog;
|
||||
public class GetChatServerListRequestData
|
||||
{
|
||||
[JsonPropertyName("VersionId")]
|
||||
public string VersionId { get; set; }
|
||||
public string? VersionId { get; set; }
|
||||
}
|
||||
@@ -5,12 +5,12 @@ namespace Core.Models.Eft.Dialog;
|
||||
|
||||
public class GetFriendListDataResponse
|
||||
{
|
||||
[JsonPropertyName("Friends")]
|
||||
public List<UserDialogInfo> Friends { get; set; }
|
||||
[JsonPropertyName("Friends")]
|
||||
public List<UserDialogInfo>? Friends { get; set; }
|
||||
|
||||
[JsonPropertyName("Ignore")]
|
||||
public List<string> Ignore { get; set; }
|
||||
[JsonPropertyName("Ignore")]
|
||||
public List<string>? Ignore { get; set; }
|
||||
|
||||
[JsonPropertyName("InIgnoreList")]
|
||||
public List<string> InIgnoreList { get; set; }
|
||||
[JsonPropertyName("InIgnoreList")]
|
||||
public List<string>? InIgnoreList { get; set; }
|
||||
}
|
||||
@@ -5,5 +5,5 @@ namespace Core.Models.Eft.Dialog;
|
||||
public class GetMailDialogInfoRequestData
|
||||
{
|
||||
[JsonPropertyName("dialogId")]
|
||||
public string DialogId { get; set; }
|
||||
public string? DialogId { get; set; }
|
||||
}
|
||||
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Dialog;
|
||||
public class GetMailDialogListRequestData
|
||||
{
|
||||
[JsonPropertyName("limit")]
|
||||
public int Limit { get; set; }
|
||||
public int? Limit { get; set; }
|
||||
|
||||
[JsonPropertyName("offset")]
|
||||
public int Offset { get; set; }
|
||||
public int? Offset { get; set; }
|
||||
}
|
||||
@@ -5,15 +5,15 @@ namespace Core.Models.Eft.Dialog;
|
||||
|
||||
public class GetMailDialogViewRequestData
|
||||
{
|
||||
[JsonPropertyName("type")]
|
||||
public MessageType Type { get; set; }
|
||||
[JsonPropertyName("type")]
|
||||
public MessageType? Type { get; set; }
|
||||
|
||||
[JsonPropertyName("dialogId")]
|
||||
public string DialogId { get; set; }
|
||||
[JsonPropertyName("dialogId")]
|
||||
public string? DialogId { get; set; }
|
||||
|
||||
[JsonPropertyName("limit")]
|
||||
public int Limit { get; set; }
|
||||
[JsonPropertyName("limit")]
|
||||
public int? Limit { get; set; }
|
||||
|
||||
[JsonPropertyName("time")]
|
||||
public decimal Time { get; set; } // decimal
|
||||
[JsonPropertyName("time")]
|
||||
public decimal Time { get; set; } // decimal
|
||||
}
|
||||
@@ -5,12 +5,12 @@ namespace Core.Models.Eft.Dialog;
|
||||
|
||||
public class GetMailDialogViewResponseData
|
||||
{
|
||||
[JsonPropertyName("messages")]
|
||||
public List<Message> Messages { get; set; }
|
||||
[JsonPropertyName("messages")]
|
||||
public List<Message>? Messages { get; set; }
|
||||
|
||||
[JsonPropertyName("profiles")]
|
||||
public List<UserDialogInfo> Profiles { get; set; }
|
||||
[JsonPropertyName("profiles")]
|
||||
public List<UserDialogInfo>? Profiles { get; set; }
|
||||
|
||||
[JsonPropertyName("hasMessagesWithRewards")]
|
||||
public bool HasMessagesWithRewards { get; set; }
|
||||
[JsonPropertyName("hasMessagesWithRewards")]
|
||||
public bool? HasMessagesWithRewards { get; set; }
|
||||
}
|
||||
@@ -5,5 +5,5 @@ namespace Core.Models.Eft.Dialog;
|
||||
public class PinDialogRequestData
|
||||
{
|
||||
[JsonPropertyName("dialogId")]
|
||||
public string DialogId { get; set; }
|
||||
public string? DialogId { get; set; }
|
||||
}
|
||||
@@ -5,5 +5,5 @@ namespace Core.Models.Eft.Dialog;
|
||||
public class RemoveDialogRequestData
|
||||
{
|
||||
[JsonPropertyName("dialogId")]
|
||||
public string DialogId { get; set; }
|
||||
public string? DialogId { get; set; }
|
||||
}
|
||||
@@ -5,5 +5,5 @@ namespace Core.Models.Eft.Dialog;
|
||||
public class RemoveMailMessageRequest
|
||||
{
|
||||
[JsonPropertyName("dialogId")]
|
||||
public string DialogId { get; set; }
|
||||
public string? DialogId { get; set; }
|
||||
}
|
||||
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Dialog;
|
||||
public class RemoveUserGroupMailRequest
|
||||
{
|
||||
[JsonPropertyName("dialogId")]
|
||||
public string DialogId { get; set; }
|
||||
public string? DialogId { get; set; }
|
||||
|
||||
[JsonPropertyName("uid")]
|
||||
public string Uid { get; set; }
|
||||
public string? Uid { get; set; }
|
||||
}
|
||||
@@ -3,16 +3,17 @@ using Core.Models.Enums;
|
||||
|
||||
namespace Core.Models.Eft.Dialog;
|
||||
|
||||
public class SendMessageRequest {
|
||||
[JsonPropertyName("dialogId")]
|
||||
public string DialogId { get; set; }
|
||||
public class SendMessageRequest
|
||||
{
|
||||
[JsonPropertyName("dialogId")]
|
||||
public string? DialogId { get; set; }
|
||||
|
||||
[JsonPropertyName("type")]
|
||||
public MessageType Type { get; set; }
|
||||
[JsonPropertyName("type")]
|
||||
public MessageType? Type { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
[JsonPropertyName("text")]
|
||||
public string? Text { get; set; }
|
||||
|
||||
[JsonPropertyName("replyTo")]
|
||||
public string ReplyTo { get; set; }
|
||||
[JsonPropertyName("replyTo")]
|
||||
public string? ReplyTo { get; set; }
|
||||
}
|
||||
@@ -5,5 +5,5 @@ namespace Core.Models.Eft.Dialog;
|
||||
public class SetDialogReadRequestData
|
||||
{
|
||||
[JsonPropertyName("dialogId")]
|
||||
public List<string> DialogId { get; set; }
|
||||
public List<string>? DialogId { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user