public Channel(Application application, string idChannelForApplication, bool isSolo, AdSystem adSystem = null) { ApplicationName = application.ApplicationName; Application = application; IdForApplication = idChannelForApplication; Private = isSolo; AdSystem = adSystem; }
/// <summary> /// Initializes a new instance of the <see cref="Ad"/> class. /// </summary> /// <param name="maxShow">The maximum show.</param> /// <param name="name">The name.</param> /// <param name="lastSent">The last sent.</param> /// <param name="message">The message.</param> /// <param name="adSystem">The ad system.</param> public Ad(int maxShow, string name, DateTime lastSent, Message message, AdSystem adSystem) { MaxShow = maxShow; Name = name; LastSent = lastSent; MessageId = message.MessageId; Message = message; AdSystemId = adSystem.ChannelId; AdSystem = adSystem; }