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); }
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; }