public void load(JsonActionNode node) { value = node.value; endValue = node.endValue; foundContent = node.foundContent; filePath = node.filePath; type = ActionType.EXIT; if (node.type != string.Empty) { for (int i = 0; i < xType.Length; i++) { if (xType[i] == node.type) { type = (ActionType)i; } } } checkType = ActionCheckType.MD5; if (string.IsNullOrEmpty(node.type) != true) { for (int i = 0; i < xCheckType.Length; i++) { if (xCheckType[i] == node.checkType) { checkType = (ActionCheckType)i; } } } }
public ActionNode() { type = ActionType.NONE; checkType = ActionCheckType.MD5; }