Church.Net.API/LineAPI/Message/TextMessage.cs
2022-09-08 08:04:32 -07:00

40 lines
808 B
C#

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LineAPI.Message
{
public interface ILineMessage
{
string Type { get; set; }
}
internal class TextMessage: ILineMessage
{
[JsonProperty("type")]
public string Type { get; set; }
[JsonProperty("text")]
public string Text { get; set; }
[JsonProperty("emojis")]
public List<Emoji> Emojis { get; set; }
}
public class Emoji
{
[JsonProperty("index")]
public int Index { get; set; }
[JsonProperty("productId")]
public string ProductId { get; set; }
[JsonProperty("emojiId")]
public string EmojiId { get; set; }
}
}