yzh
2022-03-14 9f5df1b277c9f72f0aeb847de042de4934286f60
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
 
 
using System;
using System.Collections.Generic;
 
namespace Mytek.UMCLib
{
  [Serializable]
  public class WxPushMessageData
  {
    public string WxToken { get; private set; }
 
    public string Title { get; private set; }
 
    public string Author { get; private set; }
 
    public byte[] ImageData { get; private set; }
 
    public string Content { get; private set; }
 
    public string LinkUrl { get; private set; }
 
    public List<string> OpenIDList { get; protected set; }
 
    public string ImageFileName { get; private set; }
 
    public WxPushMessageData(string wxAccessToken, string title, string author, string imageFileName, byte[] imageData, string content, string linkUrl, params string[] openIDs)
    {
      this.ImageFileName = imageFileName;
      this.WxToken = wxAccessToken;
      this.Author = author;
      this.Title = title;
      this.ImageData = imageData;
      this.Content = content;
      this.LinkUrl = linkUrl;
      if (this.OpenIDList == null)
        this.OpenIDList = new List<string>();
      this.OpenIDList.AddRange((IEnumerable<string>) openIDs);
    }
  }
}