示例#1
0
        public Dictionary <int, BugAttachment> GetAttachments(int[] attachmentIds)
        {
            GetAttachmentsParam args = new GetAttachmentsParam();

            args.attachment_ids = attachmentIds;
            GetAttachmentsResponse          res  = Proxy.GetAttachments(args);
            Dictionary <int, BugAttachment> dict = new Dictionary <int, BugAttachment> ();

            foreach (BugAttachment b in res.attachments)
            {
                dict [b.id] = b;
            }
            return(dict);
        }
示例#2
0
 public Dictionary<int, BugAttachment> GetAttachments(int[] attachmentIds)
 {
     GetAttachmentsParam args = new GetAttachmentsParam ();
     args.attachment_ids = attachmentIds;
     GetAttachmentsResponse res = Proxy.GetAttachments (args);
     Dictionary<int,BugAttachment> dict = new Dictionary<int, BugAttachment> ();
     foreach (BugAttachment b in res.attachments)
         dict [b.id] = b;
     return dict;
 }