public UrlOptions(string url, int waitTime, int coolDown, int biFlags) { ID = Guid.NewGuid(); Url = url; CoolDown = new UrlCooldown(coolDown); WaitTime = waitTime; BIFlags = biFlags; }
public MQTTCoolDown(UrlCooldown src) { CooldownTime = src.CooldownTime; LastSent = src.LastSent - TimeSpan.FromHours(2); // make it far in the past to ensure the first trigger }
public UrlCooldown(UrlCooldown src) { CooldownTime = src.CooldownTime; LastSent = src.LastSent; // make it far in the past to ensure the first trigger }