@@ -13,57 +13,138 @@ namespace StreamChat.Core.InternalDTO.Events
1313{
1414 using System = global ::System ;
1515
16+ /// <summary>
17+ /// Emitted when a channel/thread is marked as unread.
18+ /// </summary>
1619 [ System . CodeDom . Compiler . GeneratedCode ( "NJsonSchema" , "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))" ) ]
1720 internal partial class NotificationMarkUnreadEventInternalDTO
1821 {
22+ /// <summary>
23+ /// The channel object which was marked as read
24+ /// </summary>
1925 [ Newtonsoft . Json . JsonProperty ( "channel" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
2026 public ChannelResponseInternalDTO Channel { get ; set ; }
2127
28+ [ Newtonsoft . Json . JsonProperty ( "channel_custom" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
29+ public System . Collections . Generic . Dictionary < string , object > ChannelCustom { get ; set ; }
30+
31+ /// <summary>
32+ /// The ID of the channel which was marked as unread
33+ /// </summary>
2234 [ Newtonsoft . Json . JsonProperty ( "channel_id" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
2335 public string ChannelId { get ; set ; }
2436
37+ /// <summary>
38+ /// The number of members in the channel
39+ /// </summary>
2540 [ Newtonsoft . Json . JsonProperty ( "channel_member_count" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
26- public int ChannelMemberCount { get ; set ; }
41+ public int ? ChannelMemberCount { get ; set ; }
42+
43+ [ Newtonsoft . Json . JsonProperty ( "channel_message_count" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
44+ public long ? ChannelMessageCount { get ; set ; }
2745
46+ /// <summary>
47+ /// The type of the channel which was marked as unread
48+ /// </summary>
2849 [ Newtonsoft . Json . JsonProperty ( "channel_type" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
2950 public string ChannelType { get ; set ; }
3051
52+ /// <summary>
53+ /// The CID of the channel which was marked as unread
54+ /// </summary>
3155 [ Newtonsoft . Json . JsonProperty ( "cid" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
3256 public string Cid { get ; set ; }
3357
58+ /// <summary>
59+ /// Date/time of creation
60+ /// </summary>
3461 [ Newtonsoft . Json . JsonProperty ( "created_at" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
3562 public System . DateTimeOffset CreatedAt { get ; set ; }
3663
64+ [ Newtonsoft . Json . JsonProperty ( "custom" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
65+ public System . Collections . Generic . Dictionary < string , object > Custom { get ; set ; } = new System . Collections . Generic . Dictionary < string , object > ( ) ;
66+
67+ /// <summary>
68+ /// The ID of the first unread message
69+ /// </summary>
3770 [ Newtonsoft . Json . JsonProperty ( "first_unread_message_id" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
3871 public string FirstUnreadMessageId { get ; set ; }
3972
73+ [ Newtonsoft . Json . JsonProperty ( "grouped_unread_channels" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
74+ public System . Collections . Generic . Dictionary < string , int > GroupedUnreadChannels { get ; set ; }
75+
76+ /// <summary>
77+ /// The time when the channel/thread was marked as unread
78+ /// </summary>
4079 [ Newtonsoft . Json . JsonProperty ( "last_read_at" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
41- public System . DateTimeOffset LastReadAt { get ; set ; }
80+ public System . DateTimeOffset ? LastReadAt { get ; set ; }
4281
82+ /// <summary>
83+ /// The ID of the last read message
84+ /// </summary>
4385 [ Newtonsoft . Json . JsonProperty ( "last_read_message_id" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
4486 public string LastReadMessageId { get ; set ; }
4587
88+ [ Newtonsoft . Json . JsonProperty ( "received_at" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
89+ public System . DateTimeOffset ? ReceivedAt { get ; set ; }
90+
91+ /// <summary>
92+ /// The team ID
93+ /// </summary>
4694 [ Newtonsoft . Json . JsonProperty ( "team" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
4795 public string Team { get ; set ; }
4896
97+ /// <summary>
98+ /// The ID of the thread which was marked as unread
99+ /// </summary>
100+ [ Newtonsoft . Json . JsonProperty ( "thread_id" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
101+ public string ThreadId { get ; set ; }
102+
103+ /// <summary>
104+ /// The total number of unread messages
105+ /// </summary>
49106 [ Newtonsoft . Json . JsonProperty ( "total_unread_count" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
50- public int TotalUnreadCount { get ; set ; }
107+ public int ? TotalUnreadCount { get ; set ; }
51108
109+ /// <summary>
110+ /// The type of event: "notification.mark_unread" in this case
111+ /// </summary>
52112 [ Newtonsoft . Json . JsonProperty ( "type" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
53113 public string Type { get ; set ; } = "notification.mark_unread" ;
54114
115+ /// <summary>
116+ /// The number of channels with unread messages
117+ /// </summary>
55118 [ Newtonsoft . Json . JsonProperty ( "unread_channels" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
56- public int UnreadChannels { get ; set ; }
119+ public int ? UnreadChannels { get ; set ; }
57120
121+ /// <summary>
122+ /// The total number of unread messages
123+ /// </summary>
58124 [ Newtonsoft . Json . JsonProperty ( "unread_count" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
59- public int UnreadCount { get ; set ; }
125+ public int ? UnreadCount { get ; set ; }
60126
127+ /// <summary>
128+ /// The number of unread messages in the channel/thread after first_unread_message_id
129+ /// </summary>
61130 [ Newtonsoft . Json . JsonProperty ( "unread_messages" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
62- public int UnreadMessages { get ; set ; }
131+ public int ? UnreadMessages { get ; set ; }
132+
133+ /// <summary>
134+ /// The total number of unread messages in the threads
135+ /// </summary>
136+ [ Newtonsoft . Json . JsonProperty ( "unread_thread_messages" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
137+ public int ? UnreadThreadMessages { get ; set ; }
63138
139+ /// <summary>
140+ /// The number of unread threads
141+ /// </summary>
64142 [ Newtonsoft . Json . JsonProperty ( "unread_threads" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
65- public int UnreadThreads { get ; set ; }
143+ public int ? UnreadThreads { get ; set ; }
66144
145+ /// <summary>
146+ /// The user who marked the channel as unread
147+ /// </summary>
67148 [ Newtonsoft . Json . JsonProperty ( "user" , Required = Newtonsoft . Json . Required . Default , NullValueHandling = Newtonsoft . Json . NullValueHandling . Ignore ) ]
68149 public UserObjectInternalDTO User { get ; set ; }
69150
0 commit comments