public MCAIMEmail[] campaignEmailStatsAIMAll(string cid, int start, int limit)
        {
            XmlRpcStruct s = this.api.campaignEmailStatsAIMAll(this.apikey, cid, start, limit);

            MCAIMEmail[] emails = new MCAIMEmail[(s).Count];
            int          i      = 0;

            foreach (string email in s.Keys)
            {
                emails[i].email = email;
                Object[] details = (Object[])s[email];
                emails[i].details = new MCAIMEmailDetail[details.Length];
                int j = 0;
                foreach (XmlRpcStruct stat in details)
                {
                    foreach (string name in stat.Keys)
                    {
                        if (name == "action")
                        {
                            emails[i].details[j].action = (string)stat[name];
                        }
                        if (name == "timestamp")
                        {
                            emails[i].details[j].timestamp = (string)stat[name];
                        }
                        if (name == "url")
                        {
                            emails[i].details[j].url = (string)stat[name];
                        }
                    }
                    j++;
                }
                i++;
            }
            return(emails);
        }
 public MCAIMEmail[] campaignEmailStatsAIMAll(string cid, int start, int limit)
 {
     XmlRpcStruct s = this.api.campaignEmailStatsAIMAll(this.apikey, cid, start, limit);
     MCAIMEmail[] emails = new MCAIMEmail[(s).Count];
     int i = 0;
     foreach (string email in s.Keys)
     {
         emails[i].email = email;
         Object[] details = (Object[])s[email];
         emails[i].details = new MCAIMEmailDetail[details.Length];
         int j = 0;
         foreach (XmlRpcStruct stat in details)
         {
             foreach (string name in stat.Keys)
             {
                 if (name == "action")
                 {
                     emails[i].details[j].action = (string)stat[name];
                 }
                 if (name == "timestamp")
                 {
                     emails[i].details[j].timestamp = (string)stat[name];
                 }
                 if (name == "url")
                 {
                     emails[i].details[j].url = (string)stat[name];
                 }
             }
             j++;
         }
         i++;
     }
     return emails;
 }