public IntervalTriggeredMessage(int delayInMinutes, string message, DataItemStatus dataItemStatus = DataItemStatus.Draft) { DelayInMinutes = delayInMinutes; Message = message; DataItemStatus = dataItemStatus; }
public RepeatingMessage(long repeatEvery, string message, DataItemStatus dataItemStatus = DataItemStatus.Draft) { _lastRun = 0; RepeatEvery = repeatEvery; Message = message; DataItemStatus = dataItemStatus; }
public SimpleResponseMessage(string commandText, string staticResponse, DataItemStatus dataItemStatus = DataItemStatus.Draft, Func <CommandReceivedEventArgs, string> selector = null) { _staticResponse = staticResponse; _selector = selector; CommandText = commandText; DataItemStatus = dataItemStatus; }
public static StatusPolicy <T> ByStatus(DataItemStatus dataItemStatus) { return(new StatusPolicy <T>(t => t.DataItemStatus == dataItemStatus)); }
public SimpleResponseMessage(string commandText, string staticResponse, DataItemStatus dataItemStatus = DataItemStatus.Draft) { _staticResponse = staticResponse; CommandText = commandText; DataItemStatus = dataItemStatus; }
public static DataItemPolicy <T> ByStatus(DataItemStatus dataItemStatus) { return(new DataItemPolicy <T>(x => x.DataItemStatus == dataItemStatus)); }