|
|
using Newtonsoft.Json;
|
using System;
|
using System.Collections.Generic;
|
|
namespace Mytek.UMCLib
|
{
|
[Serializable]
|
public class AppMessageData : BaseMessageData
|
{
|
public string Title { get; set; }
|
|
public string MessageType { get; private set; }
|
|
public DateTime Time { get; set; }
|
|
public string[] Images { get; set; }
|
|
public string Link { get; set; }
|
|
public Dictionary<string, string> ExtData { get; set; }
|
|
public MessageActor Sender { get; set; }
|
|
public string AppKey { get; set; }
|
|
public string AppSecret { get; set; }
|
|
public AppMessageData(string title, string content, string messageType, MessageActor sender)
|
: base(content)
|
{
|
this.MessageType = messageType;
|
this.Title = title;
|
this.Sender = sender;
|
}
|
|
public override string ToString()
|
{
|
return JsonConvert.SerializeObject((object) this);
|
}
|
}
|
}
|