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 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(); this.OpenIDList.AddRange((IEnumerable) openIDs); } } }