public WeCardBaseInfo(string logo, CodeType codeType, string brandName, string title,
            string color, string notice, string description, WeDateInfo dateInfo, int quantity)
        {
            TkDebug.AssertArgumentNullOrEmpty(logo, "logo", null);
            TkDebug.AssertArgumentNullOrEmpty(brandName, "brandName", null);
            TkDebug.AssertArgumentNullOrEmpty(title, "title", null);
            TkDebug.AssertArgumentNullOrEmpty(color, "color", null);
            TkDebug.AssertArgumentNullOrEmpty(notice, "notice", null);
            TkDebug.AssertArgumentNullOrEmpty(description, "description", null);
            TkDebug.AssertArgumentNull(dateInfo, "dateInfo", null);

            LogoUrl = logo;
            CodeType = codeType;
            BrandName = brandName;
            Title = title;
            Color = color;
            Notice = notice;
            Description = description;
            DateInfo = dateInfo;
            Quantity = quantity;

            // 最大领取次数,不填写默认为quantity
            GetLimit = quantity;
        }
Exemple #2
0
        public WeCardBaseInfo(string logo, CodeType codeType, string brandName, string title,
                              string color, string notice, string description, WeDateInfo dateInfo, int quantity)
        {
            TkDebug.AssertArgumentNullOrEmpty(logo, "logo", null);
            TkDebug.AssertArgumentNullOrEmpty(brandName, "brandName", null);
            TkDebug.AssertArgumentNullOrEmpty(title, "title", null);
            TkDebug.AssertArgumentNullOrEmpty(color, "color", null);
            TkDebug.AssertArgumentNullOrEmpty(notice, "notice", null);
            TkDebug.AssertArgumentNullOrEmpty(description, "description", null);
            TkDebug.AssertArgumentNull(dateInfo, "dateInfo", null);

            LogoUrl     = logo;
            CodeType    = codeType;
            BrandName   = brandName;
            Title       = title;
            Color       = color;
            Notice      = notice;
            Description = description;
            DateInfo    = dateInfo;
            Quantity    = quantity;

            // 最大领取次数,不填写默认为quantity
            GetLimit = quantity;
        }