示例#1
0
 /// <summary>
 /// Creates an instance of <see cref="AlarmFilter"/> with
 /// a GUID (Alarm.ItemGuid) used for filtering.
 /// </summary>
 /// <param name="partition">Name of the Partition to filter on</param>
 /// <param name="alarmGuid">GUID (Alarm.ItemGuid) of the Alarm to be returned</param>
 /// <param name="alarmSiteName">Name of the Site to filter on</param>
 /// <param name="alarmTypeName">Name of the Alarm Type to filter on</param>
 /// <param name="itemName">Name of the Item associated with the Alarm(s) to filter on</param>
 /// <param name="operatorName">Name of the Operator who updated the Alarm(s) to filter on</param>
 public AlarmFilter(string partition, string alarmGuid, string alarmSiteName, string alarmTypeName, string itemName, string operatorName)
 {
     if (partition != null) Partition = new PartitionFilter {CV = partition};
     if (alarmGuid != null) AlarmGuid = new AlarmGuidFilter{CV=alarmGuid};
     if (alarmSiteName != null) AlarmSiteName = new AlarmSiteNameFilter {CV = alarmSiteName};
     if (alarmTypeName != null) AlarmTypeName = new AlarmTypeNameFilter {CV = alarmTypeName};
     if (itemName != null) ItemName = new ItemNameFilter {CV = itemName};
     if (operatorName != null) OperatorName = new OperatorNameFilter {CV = operatorName};
 }
示例#2
0
 /// <summary>
 /// Creates an instance of <see cref="AlarmDetailsFilter"/> with
 /// a GUID (Alarm.ItemGuid) to filter on.
 /// </summary>
 /// <param name="alarmGuid">GUID (Alarm.ItemGuid) of the Alarm to be returned</param>
 public AlarmDetailsFilter(string alarmGuid)
 {
     AlarmGuid = new AlarmGuidFilter {CV = alarmGuid};
 }