forked from InEngine-NET/InEngine.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimpleTrigger.cs
More file actions
24 lines (22 loc) · 1013 Bytes
/
SimpleTrigger.cs
File metadata and controls
24 lines (22 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using Nest;
using System;
using System.Collections.Generic;
namespace IntegrationEngine.Model
{
public class SimpleTrigger : ISimpleTrigger
{
public virtual string Id { get; set; }
public virtual string JobType { get; set; }
public virtual int RepeatCount { get; set; }
public virtual TimeSpan RepeatInterval { get; set; }
public virtual DateTimeOffset StartTimeUtc { get; set; }
public virtual int StateId { get; set; }
public virtual IDictionary<string, string> Parameters { get; set; }
[ElasticProperty(OptOut = true)]
public virtual string StateDescription { get { return StateId.GetStateDescription(); } }
public override string ToString()
{
return string.Format("[SimpleTrigger: Id={0}, JobType={1}, RepeatCount={2}, RepeatInterval={3}, StartTimeUtc={4}, StateId={5}, StateDescription={6}]", Id, JobType, RepeatCount, RepeatInterval, StartTimeUtc, StateId, StateDescription);
}
}
}