From d26b9963d9e7faa7181cc27adc783ee781f6d05f Mon Sep 17 00:00:00 2001 From: Felipe Salles Date: Wed, 10 Jul 2024 14:11:26 -0300 Subject: [PATCH] The description property was added to the LIME type Group to manage groups in WA CAPI. --- src/Lime.Messaging/Resources/Group.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Lime.Messaging/Resources/Group.cs b/src/Lime.Messaging/Resources/Group.cs index 4d62596d..82042ddf 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)) { - } ///