public TokenConditionInfo(TokenCondition tokenCondition) { if (tokenCondition == null) { throw new ArgumentNullException(nameof(tokenCondition)); } Type = tokenCondition.type; TokenType = tokenCondition.tokenType; OppositeGirl = tokenCondition.oppositeGirl; Comparison = tokenCondition.comparison; Val = tokenCondition.val; Inverse = tokenCondition.inverse; TokenDefinitionID = tokenCondition.tokenDefinition?.id ?? -1; }
public TokenConditionInfo(TokenConditionType type, TokenConditionTokenType tokenType, NumberComparisonType comparison, string val, int tokenDefinitionID, bool oppositeGirl, bool inverse) { Type = type; TokenType = tokenType; TokenDefinitionID = tokenDefinitionID; OppositeGirl = oppositeGirl; Comparison = comparison; Val = val; Inverse = inverse; }