/// <summary>
 /// Initializes a channel with the specified data.
 /// </summary>
 public Teamspeak3Channel(Teamspeak3Group info = null)
 {
     Basic    = new BasicInfo();
     Normal   = new NormalInfo();
     Advanced = new AdvancedInfo();
     Update(info);
 }
Exemple #2
0
        public static AdvancedInfo WithInitializeSettings(this AdvancedInfo info, CardTypes type, MerchantModel merchant)
        {
            info.UseCondition = new UseCondition()
            {
                AcceptCategory          = string.Empty,
                CanUseWithOtherDiscount = false,
                LeastCost      = null,
                RejectCategory = string.Empty
            };
            info.Abstract = new Abstract()
            {
                AbstractX   = string.Empty,
                IconUrlList = new string[] { string.Empty }
            };
            info.TextImageList = new System.Collections.Generic.List <TextImage>()
            {
                new TextImage()
                {
                },
                new TextImage()
                {
                },
                new TextImage()
                {
                }
            };

            info.BusinessService = Constants.BusinessService.Keys.ToArray();
            info.Abstract        = new Abstract()
            {
            };
            return(info);
        }
Exemple #3
0
        public static AdvancedInfo WitFixedSettings(this AdvancedInfo info, CardTypes type)
        {
            switch (type)
            {
            case CardTypes.MEMBER_CARD:
                break;
            }

            if (info.UseCondition == null)
            {
                info.UseCondition = new UseCondition()
                {
                }
            }
            ;
            info.UseCondition.CanUseWithOtherDiscount = false;
            return(info);
        }
 /// <summary>
 /// Initializes a server with the specified data.
 /// </summary>
 public Teamspeak3Server(Teamspeak3Group info = null)
 {
     Normal   = new NormalInfo();
     Advanced = new AdvancedInfo();
     Update(info);
 }