/// <summary>
        /// Returns true if GetStatsByBrowser instances are equal
        /// </summary>
        /// <param name="input">Instance of GetStatsByBrowser to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(GetStatsByBrowser input)
        {
            if (input == null)
            {
                return(false);
            }

            return(base.Equals(input));
        }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetExtendedCampaignStats" /> class.
 /// </summary>
 /// <param name="globalStats">Overall statistics of the campaign (required).</param>
 /// <param name="campaignStats">List-wise statistics of the campaign. (required).</param>
 /// <param name="mirrorClick">Number of clicks on mirror link (required).</param>
 /// <param name="remaining">Number of remaning emails to send (required).</param>
 /// <param name="linksStats">Statistics about the number of clicks for the links (required).</param>
 /// <param name="statsByDomain">statsByDomain (required).</param>
 /// <param name="statsByDevice">Statistics about the campaign on the basis of various devices (required).</param>
 /// <param name="statsByBrowser">Statistics about the campaign on the basis of various browsers (required).</param>
 public GetExtendedCampaignStats(Object globalStats = default(Object), List <Object> campaignStats = default(List <Object>), long?mirrorClick = default(long?), long?remaining = default(long?), Object linksStats = default(Object), GetStatsByDomain statsByDomain = default(GetStatsByDomain), GetStatsByDevice statsByDevice = default(GetStatsByDevice), GetStatsByBrowser statsByBrowser = default(GetStatsByBrowser))
 {
     // to ensure "globalStats" is required (not null)
     if (globalStats == null)
     {
         throw new InvalidDataException("globalStats is a required property for GetExtendedCampaignStats and cannot be null");
     }
     else
     {
         this.GlobalStats = globalStats;
     }
     // to ensure "campaignStats" is required (not null)
     if (campaignStats == null)
     {
         throw new InvalidDataException("campaignStats is a required property for GetExtendedCampaignStats and cannot be null");
     }
     else
     {
         this.CampaignStats = campaignStats;
     }
     // to ensure "mirrorClick" is required (not null)
     if (mirrorClick == null)
     {
         throw new InvalidDataException("mirrorClick is a required property for GetExtendedCampaignStats and cannot be null");
     }
     else
     {
         this.MirrorClick = mirrorClick;
     }
     // to ensure "remaining" is required (not null)
     if (remaining == null)
     {
         throw new InvalidDataException("remaining is a required property for GetExtendedCampaignStats and cannot be null");
     }
     else
     {
         this.Remaining = remaining;
     }
     // to ensure "linksStats" is required (not null)
     if (linksStats == null)
     {
         throw new InvalidDataException("linksStats is a required property for GetExtendedCampaignStats and cannot be null");
     }
     else
     {
         this.LinksStats = linksStats;
     }
     // to ensure "statsByDomain" is required (not null)
     if (statsByDomain == null)
     {
         throw new InvalidDataException("statsByDomain is a required property for GetExtendedCampaignStats and cannot be null");
     }
     else
     {
         this.StatsByDomain = statsByDomain;
     }
     // to ensure "statsByDevice" is required (not null)
     if (statsByDevice == null)
     {
         throw new InvalidDataException("statsByDevice is a required property for GetExtendedCampaignStats and cannot be null");
     }
     else
     {
         this.StatsByDevice = statsByDevice;
     }
     // to ensure "statsByBrowser" is required (not null)
     if (statsByBrowser == null)
     {
         throw new InvalidDataException("statsByBrowser is a required property for GetExtendedCampaignStats and cannot be null");
     }
     else
     {
         this.StatsByBrowser = statsByBrowser;
     }
 }