11using System . Text . Json . Serialization ;
22
3- namespace Line . Message . Bot
3+ namespace Line . Message
44{
55 /// <summary>
66 /// Gets a bot's basic information.
77 /// </summary>
8- public class BotInfo
8+ public class BotInformation
99 {
1010 /// <summary>
1111 /// Bot's user ID
@@ -24,7 +24,7 @@ public class BotInfo
2424 /// </summary>
2525 [ JsonPropertyName ( "premiumId" ) ]
2626 [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
27- public string PremiumId { get ; set ; }
27+ public string ? PremiumId { get ; set ; }
2828
2929 /// <summary>
3030 /// Bot's display name
@@ -37,22 +37,22 @@ public class BotInfo
3737 /// </summary>
3838 [ JsonPropertyName ( "pictureUrl" ) ]
3939 [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
40- public string PictureUrl { get ; set ; }
40+ public string ? PictureUrl { get ; set ; }
4141
4242 /// <summary>
4343 /// Chat settings set in the LINE Official Account Manager (opens new window). One of:
4444 /// chat: Chat is set to "On".
4545 /// bot: Chat is set to "Off".
4646 /// </summary>
4747 [ JsonPropertyName ( "chatMode" ) ]
48- public string ChatMode { get ; set ; }
48+ public ChatType ChatMode { get ; set ; }
4949
5050 /// <summary>
5151 /// Automatic read setting for messages. If the chat is set to "Off", auto is returned. If the chat is set to "On", manual is returned.
5252 /// auto: Auto read setting is enabled.
5353 /// manual: Auto read setting is disabled.
5454 /// </summary>
5555 [ JsonPropertyName ( "markAsReadMode" ) ]
56- public string MarkAsReadMode { get ; set ; }
56+ public ReadType MarkAsReadMode { get ; set ; }
5757 }
5858}
0 commit comments