namespace JiDangJia.Contracts; public sealed record CommunityAccount(string Id,string Username,string Name,bool Following=false,string Remark="",string IdentityKind="PERSONAL",bool Verified=false,string CreditLevel="GOOD"); public sealed record CommunityMedia(string Id,string Kind,string MimeType,long Size,double Duration,string Source="",string MarkedAt="",string ExpiresAt=""); public sealed record SupplyCard(string Intent,string Category,string Subcategory,Dictionary Fields,List Delivery); public sealed record CommunityPost(long Id,string AuthorId,string AuthorName,string Title,string Content,string CreatedAt,int LikeCount,int CommentCount,bool Liked,bool CanDelete,string Kind="SQUARE",string City="",string Address="",List? Media=null,SupplyCard? Supply=null,string RefreshedAt="",bool Following=false,string AuthorRemark="",string IdentityKind="PERSONAL",bool Verified=false,string ModerationStatus="APPROVED",ServiceCard? Service=null,string CreditLevel="GOOD",string ShelfStatus="ACTIVE",bool Pinned=false,string PublishArea="",bool LocationVerified=false); public sealed record PostPage(List Items,long? NextBefore); public sealed record RefreshCardsResult(int Refreshed,int CoolingDown,int Unavailable); public sealed record CommunityComment(long Id,long PostId,string AuthorId,string AuthorName,string Content,string CreatedAt,bool CanDelete,string ModerationStatus="APPROVED",string IdentityKind="PERSONAL",string CreditLevel="GOOD",bool Verified=true); public sealed record CommentPage(List Items,long? NextBefore); public sealed record ChatMessage(long Id,string SenderId,string SenderName,string RecipientId,string Content,string CreatedAt,string ClientId,string Kind="TEXT",CommunityMedia? Media=null,string ModerationStatus="APPROVED",string ExchangeId="",long Sequence=0); public sealed record MessagePage(List Items,bool HasMore); public sealed record ChatSyncItem(ChatMessage Message,CommunityAccount Peer,bool Read); public sealed record ChatSyncPage(List Items,long Cursor,bool HasMore,List ReadThrough,long ClearedThroughId=0,string ClearedAt=""); public sealed record Conversation(string PeerId,string PeerName,string PeerUsername,string LastContent,string UpdatedAt,int UnreadCount,string Remark="",bool Following=false,string IdentityKind="PERSONAL",bool Verified=false,string CreditLevel="GOOD"); public sealed record PublishLocation(double Latitude,double Longitude,double Accuracy,string City,string Area,DateTimeOffset RecordedAt,bool IsMock=false); public sealed record PublishPostRequest(string Title,string Content,string ClientId,string Kind="SQUARE",string City="",string Address="",List? MediaIds=null,SupplyCard? Supply=null,ServiceCard? Service=null,PublishLocation? Location=null); public sealed record PublishCommentRequest(string Content,string ClientId); public sealed record SendMessageRequest(string PeerId,string Content,string ClientId,string Kind="TEXT",string? MediaId=null); public sealed record MarkReadRequest(string PeerId,long MessageId); public sealed record LikeRequest(bool Liked); public sealed record OperationResult(bool Ok); public sealed record FollowRequest(bool Following,string? Remark=null); public sealed record CommunitySettings(long Revision,string Notice,int PersonalSupplyLimit=10,int EnterpriseSupplyLimit=20); public sealed record UpdateCommunitySettingsRequest(long ExpectedRevision,string Notice,int? PersonalSupplyLimit=null,int? EnterpriseSupplyLimit=null); public sealed record SupplyQuota(int Active,int Limit,string IdentityKind); public sealed record ShelfRequest(bool Active); public sealed record PinRequest(bool Pinned); public sealed record CommunityUserLabel(string Id,string Username,string Name,string IdentityKind,bool Verified,string CreditLevel,long Revision,int ActiveSupply,int SupplyLimit,int? PublishLimitOverride=null); public sealed record UpdateUserLabelRequest(long ExpectedRevision,string CreditLevel,int? PublishLimitOverride=null,bool UpdatePublishLimit=false); public sealed record InboxReminder(long Sequence,string Kind); public sealed record InboxReminderPage(List Items,long Cursor,bool HasMore); public sealed record FeedFilter(string Tab="SQUARE",long Before=0,string City="",string Intent="",string Category="",string Subcategory="",string Brand="",string Condition="",string Query="",decimal? MinPrice=null,decimal? MaxPrice=null,string ServiceCategory="");