/// <summary> /// Overloaded constructor which helps in the creation of the Subscribe /// request for a Pull Subscription /// </summary> /// <param name="subscriptionFolders">The Distinguished folders /// you wish to subscribe to</param> /// <param name="eventTypes">The events to subscribe for</param> /// <param name="watermark">Watermark for recreating a previous /// Subscription</param> /// <param name="timeout">Timeout for Subscription in minutes</param> /// public PullSubscriptionRequestType( BaseFolderIdType[] subscriptionFolders, NotificationEventTypeType[] eventTypes, string watermark, int timeout) { this.FolderIds = subscriptionFolders; this.EventTypes = eventTypes; // If we have a Watermark then set it on the Subscribe request // if (!string.IsNullOrEmpty(watermark)) { this.Watermark = watermark; } this.Timeout = timeout; }
/// Overloaded constructor which helps in the creation of the Subscribe /// request for a Push Subscription /// </summary> /// <param name="subscriptionFolders">The folders you wish to subscribe to</param> /// <param name="eventTypes">The events to subscribe for</param> /// <param name="statusFrequency">Frequency in minutes of server ping</param> /// <param name="url">URL for client Notifications web service</param> /// <param name="watermark">Watermark for recreating a previous Subscription</param> /// public PushSubscriptionRequestType( BaseFolderIdType[] subscriptionFolders, NotificationEventTypeType[] eventTypes, int statusFrequency, string url, string watermark) { this.FolderIds = subscriptionFolders; this.EventTypes = eventTypes; this.StatusFrequency = statusFrequency; this.URL = url; // If we have a Watermark then set it on the Subscribe request // if (!string.IsNullOrEmpty(watermark)) { this.Watermark = watermark; } }