public override DestinationBase Clone() { NotifyIOSubscription clone = new NotifyIOSubscription(this.Description, this.Enabled, this.OutletUrl); return(clone); }
internal void HandleListenUrls() { System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(Utility.UserSettingFolder); System.IO.FileInfo[] files = di.GetFiles("*.ListenUrl"); foreach (System.IO.FileInfo fi in files) { string outletUrl = System.IO.File.ReadAllText(fi.FullName).Trim(); NotifyIOSubscription nios = new NotifyIOSubscription("Notify.io Notifications", true, outletUrl); if (Properties.Settings.Default.EnableSubscriptions) { nios.Subscribe(); } this.controller.AddSubscription(nios); SendSystemNotification("Notify.io outlet installed", "Growl is now listening for notifications from notify.io", null); fi.IsReadOnly = false; System.IO.File.Delete(fi.FullName); Utility.WriteDebugInfo(String.Format("Loading notify.io ListenUrl from: {0}", fi.FullName)); Utility.WriteDebugInfo(String.Format("Notify.io outlet url from ListenUrl: {0}", outletUrl)); } }
public override DestinationBase Clone() { NotifyIOSubscription clone = new NotifyIOSubscription(this.Description, this.Enabled, this.OutletUrl); return clone; }
internal void HandleListenUrls() { System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(Utility.UserSettingFolder); System.IO.FileInfo[] files = di.GetFiles("*.ListenUrl"); foreach (System.IO.FileInfo fi in files) { string outletUrl = System.IO.File.ReadAllText(fi.FullName).Trim(); NotifyIOSubscription nios = new NotifyIOSubscription("Notify.io Notifications", true, outletUrl); if(Properties.Settings.Default.EnableSubscriptions) nios.Subscribe(); this.controller.AddSubscription(nios); SendSystemNotification("Notify.io outlet installed", "Growl is now listening for notifications from notify.io", null); fi.IsReadOnly = false; System.IO.File.Delete(fi.FullName); Utility.WriteDebugInfo(String.Format("Loading notify.io ListenUrl from: {0}", fi.FullName)); Utility.WriteDebugInfo(String.Format("Notify.io outlet url from ListenUrl: {0}", outletUrl)); } }