Skip to content

Commit 5d8fa5a

Browse files
author
Jicheng Lu
committed
remove fields
1 parent c5f5ebd commit 5d8fa5a

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/Infrastructure/BotSharp.Abstraction/Agents/Models/AgentRule.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ public class AgentRule
88
[JsonPropertyName("disabled")]
99
public bool Disabled { get; set; }
1010

11-
[JsonPropertyName("event_name")]
12-
public string EventName { get; set; }
13-
14-
[JsonPropertyName("entity_type")]
15-
public string EntityType { get; set; }
16-
1711
[JsonPropertyName("criteria")]
1812
public string Criteria { get; set; }
1913
}

src/Plugins/BotSharp.Plugin.MongoStorage/Models/AgentRuleMongoElement.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ public class AgentRuleMongoElement
66
{
77
public string TriggerName { get; set; }
88
public bool Disabled { get; set; }
9-
public string EventName { get; set; }
10-
public string EntityType { get; set; }
119
public string Criteria { get; set; }
1210

1311
public static AgentRuleMongoElement ToMongoElement(AgentRule rule)
@@ -16,8 +14,6 @@ public static AgentRuleMongoElement ToMongoElement(AgentRule rule)
1614
{
1715
TriggerName = rule.TriggerName,
1816
Disabled = rule.Disabled,
19-
EventName = rule.EventName,
20-
EntityType = rule.EntityType,
2117
Criteria = rule.Criteria
2218
};
2319
}
@@ -28,8 +24,6 @@ public static AgentRule ToDomainElement(AgentRuleMongoElement rule)
2824
{
2925
TriggerName = rule.TriggerName,
3026
Disabled = rule.Disabled,
31-
EventName = rule.EventName,
32-
EntityType = rule.EntityType,
3327
Criteria = rule.Criteria
3428
};
3529
}

0 commit comments

Comments
 (0)