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