Skip to content

Commit

Permalink
fix for messagebird#110 ContentType is missing 'whatsAppSticker' and …
Browse files Browse the repository at this point in the history
…throws
  • Loading branch information
ahmetkocadogan committed Feb 19, 2022
1 parent 703eb65 commit 110a823
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MessageBird/Objects/Conversations/Content.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public enum ContentType
[EnumMember(Value = "text")] Text,
[EnumMember(Value = "video")] Video,
[EnumMember(Value = "event")] Event,
[EnumMember(Value = "whatsappSticker")] WhatsAppSticker,
}

public class Content
Expand All @@ -37,5 +38,8 @@ public class Content

[JsonProperty("video")]
public MediaContent Video {get;set;}

[JsonProperty("whatsappSticker")]
public WhatsAppStickerContent WhatsAppSticker { get; set; }
}
}
14 changes: 14 additions & 0 deletions MessageBird/Objects/Conversations/WhatsAppStickerContent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MessageBird.Objects.Conversations
{
public class WhatsAppStickerContent
{
[JsonProperty("link")]
public string Link { get; set; }
}
}

0 comments on commit 110a823

Please sign in to comment.