Skip to content

Commit

Permalink
New MessageAction enum value (#1616)
Browse files Browse the repository at this point in the history
Fix:
#1615

## Список изменений
- Добавлен вариант Custom в перечеслении MessageAction
- Добавлено поле Style в MessageActionObject
  • Loading branch information
Shark-vil authored Apr 17, 2024
1 parent 179020d commit 1a394bd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions VkNet/Enums/StringEnums/MessageAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ namespace VkNet.Enums.StringEnums;
[JsonConverter(typeof(TolerantStringEnumConverter))]
public enum MessageAction
{
/// <summary>
/// Произвольное событие;
/// </summary>
Custom,

/// <summary>
/// Обновлена фотография беседы;
/// </summary>
Expand Down
6 changes: 6 additions & 0 deletions VkNet/Model/MessageActionObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,10 @@ public class MessageActionObject
/// </summary>
[JsonProperty("photo")]
public Photo Photo { get; set; }

/// <summary>
/// Наименование нового стиля чата
/// </summary>
[JsonProperty("style")]
public string? Style { get; set; }

Check warning on line 61 in VkNet/Model/MessageActionObject.cs

View workflow job for this annotation

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 61 in VkNet/Model/MessageActionObject.cs

View workflow job for this annotation

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
}

0 comments on commit 1a394bd

Please sign in to comment.