From f2f14b280d881e43ecade805de3d6111361ee167 Mon Sep 17 00:00:00 2001 From: Edmar Souto Date: Thu, 11 Jul 2024 15:16:17 -0300 Subject: [PATCH] The description property was added to the LIME Group type to manage groups in WA CAPI. --- src/Lime.Messaging/Resources/Group.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/Lime.Messaging/Resources/Group.cs b/src/Lime.Messaging/Resources/Group.cs index 4d62596d..8fac68fb 100644 --- a/src/Lime.Messaging/Resources/Group.cs +++ b/src/Lime.Messaging/Resources/Group.cs @@ -16,6 +16,7 @@ public class Group : Document public const string IDENTITY_KEY = "identity"; public const string NAME_KEY = "name"; + public const string DESCRIPTION_KEY = "description"; public const string TYPE_KEY = "type"; public const string PHOTO_URI_KEY = "photoUri"; public const string CREATOR_KEY = "creator"; @@ -28,8 +29,8 @@ public class Group : Document public Group() : base(MediaType) { - } + /// /// Identity of the group, in the group-id@groups.domain.com format. /// @@ -42,6 +43,12 @@ public Group() [DataMember(Name = NAME_KEY)] public string Name { get; set; } + /// + /// Description of the group. + /// + [DataMember(Name = DESCRIPTION_KEY)] + public string Description { get; set; } + /// /// Type of the group. /// @@ -97,7 +104,6 @@ public enum GroupType /// [EnumMember(Value = "public")] Public - } /// @@ -118,7 +124,6 @@ public class GroupMember : Document public GroupMember() : base(MediaType.Parse(MIME_TYPE)) { - } /// @@ -172,4 +177,4 @@ public enum GroupMemberRole [EnumMember(Value = "owner")] Owner } -} +} \ No newline at end of file