Example #1
0
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="app"></param>
        /// <param name="settings"></param>
        /// <param name="filterType"></param>
        /// <param name="itemType"></param>
        /// <param name="issueTypeOrGroup"></param>
        public IssueListCall(ApplicationWithAttributes app, ASMRestSettings settings, IssueFilterType filterType = IssueFilterType.None,
                             string issueTypeOrGroup = "",
                             string itemType         = "Item Type=Group,Item Type=Vulnerability,Item Type=Highest Threat,Item Type=Unspecified")
            : base(settings)
        {
            _app = app;
            _issueTypeOrGroup = Utils.HtmlDecode(issueTypeOrGroup);

            if (this.ASMRestSettings.ServerVersion.CompareTo(new Version("9.0.2.0")) >= 0)
            {
                _issueQuery += ",Status=New";
            }

            if (!String.IsNullOrWhiteSpace(_issueTypeOrGroup))
            {
                if (filterType == IssueFilterType.Group)
                {
                    _issueQuery += ",Item Type=Child,Issue Group={1}";
                }
                else
                {
                    _issueQuery += "," + itemType + ",Issue Type={1}";
                }
            }
        }
Example #2
0
 public IssueCall(ApplicationWithAttributes app, ASMRestSettings settings) : base(settings)
 {
     _app = app;
 }