wzp
2022-03-01 eb62f992f048d3721485d6d3c1e02a4a9a0b0ce6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
 
 
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);
    }
  }
}