コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExclusionFilterOperator" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="ExpectedChannelColumnDataType">ExpectedChannelColumnDataType.</param>
 /// <param name="ValueRequired">This operator requires a value.</param>
 /// <param name="ExpectedValueDataType">ExpectedValueDataType.</param>
 public ExclusionFilterOperator(ExclusionFilterOperatorName Name = default(ExclusionFilterOperatorName), ExclusionFilterOperatorDataType ExpectedChannelColumnDataType = default(ExclusionFilterOperatorDataType), bool?ValueRequired = default(bool?), ExclusionFilterOperatorDataType ExpectedValueDataType = default(ExclusionFilterOperatorDataType))
 {
     this.Name = Name;
     this.ExpectedChannelColumnDataType = ExpectedChannelColumnDataType;
     this.ValueRequired         = ValueRequired;
     this.ExpectedValueDataType = ExpectedValueDataType;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExclusionFilter" /> class.
 /// </summary>
 /// <param name="Name">Name (required).</param>
 /// <param name="Position">The position of the exclusion filter (required).</param>
 /// <param name="GroupId">Indicate the filter&#39;s group. All filters in the same group means an \&quot;AND\&quot; operation in the filter group (required).</param>
 /// <param name="PositionInGroup">Indicate the filter group position. This information is used for the UI purpose and must be unique in the filter group. (required).</param>
 /// <param name="ChannelColumnId">ChannelColumnId (required).</param>
 /// <param name="OperatorName">OperatorName (required).</param>
 /// <param name="Value">The value indicate by the user when the filter operation requires it..</param>
 /// <param name="Enabled">indicates if the filter is currently active. (required).</param>
 public ExclusionFilter(ExclusionFilterName Name = default(ExclusionFilterName), int?Position = default(int?), string GroupId = default(string), int?PositionInGroup = default(int?), BeezUPCommonChannelColumnId ChannelColumnId = default(BeezUPCommonChannelColumnId), ExclusionFilterOperatorName OperatorName = default(ExclusionFilterOperatorName), string Value = default(string), bool?Enabled = default(bool?))
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for ExclusionFilter and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "Position" is required (not null)
     if (Position == null)
     {
         throw new InvalidDataException("Position is a required property for ExclusionFilter and cannot be null");
     }
     else
     {
         this.Position = Position;
     }
     // to ensure "GroupId" is required (not null)
     if (GroupId == null)
     {
         throw new InvalidDataException("GroupId is a required property for ExclusionFilter and cannot be null");
     }
     else
     {
         this.GroupId = GroupId;
     }
     // to ensure "PositionInGroup" is required (not null)
     if (PositionInGroup == null)
     {
         throw new InvalidDataException("PositionInGroup is a required property for ExclusionFilter and cannot be null");
     }
     else
     {
         this.PositionInGroup = PositionInGroup;
     }
     // to ensure "ChannelColumnId" is required (not null)
     if (ChannelColumnId == null)
     {
         throw new InvalidDataException("ChannelColumnId is a required property for ExclusionFilter and cannot be null");
     }
     else
     {
         this.ChannelColumnId = ChannelColumnId;
     }
     // to ensure "OperatorName" is required (not null)
     if (OperatorName == null)
     {
         throw new InvalidDataException("OperatorName is a required property for ExclusionFilter and cannot be null");
     }
     else
     {
         this.OperatorName = OperatorName;
     }
     // to ensure "Enabled" is required (not null)
     if (Enabled == null)
     {
         throw new InvalidDataException("Enabled is a required property for ExclusionFilter and cannot be null");
     }
     else
     {
         this.Enabled = Enabled;
     }
     this.Value = Value;
 }