Ejemplo n.º 1
0
 public Bug[] GetBugsByAssigned(string user)
 {
     BugSearchAssignedTo param;
     param.assigned_to = user;
     BugInfo[] bis = Proxy.Search (param).bugs;
     Bug[] res = new Bug[bis.Length];
     for (int i = 0; i < bis.Length; ++i) {
         res[i] = new Bug (this, bis[i]);
     }
     return res;
 }
Ejemplo n.º 2
0
        //@}
        //////////////////////////////////////////////////////////////////////
        // Bug handling methods
        //////////////////////////////////////////////////////////////////////
        /*! \name Bug Access
          Methods to get information about the bugs that the server knows.

          Note: There is currently no search support in the Bugzilla
          WebService. When this is implemented, the search facilities
          should complement these services nicely.

          As for products, a user may not have read/write access to all bugs.
         */
        //@{
        /*! \example ListBug.cs
         * This is an example on how to use the Bugzproxy.Server.GetBug call */
        /// <summary>Get a list of bugs</summary>
        /// <remarks>This returns an array of bugs, matching the ids
        /// supplied as arguments. Note, that if the user has specified
        /// an id for a bug that does not exist, or that the user can not
        /// access (read), an exception will be thrown. This is different
        /// from <see cref="GetProducts"/>.</remarks>
        /// <param name="ids">List of bug ids</param>
        /// <returns>Array of <see cref="Bug"/> objects</returns>
        /*! \todo Document exception, when known. */
        public Bug[] GetBugs(int[] ids)
        {
            BugIds param;
            param.ids = ids;
            BugInfo[] bis = Proxy.GetBugs (param).bugs;
            Bug[] res = new Bug[bis.Length];
            for (int i = 0; i < bis.Length; ++i) {
                res[i] = new Bug (this, bis[i]);
            }
            return res;
        }