/// <summary> /// Returns true if GetStatsByDomain instances are equal /// </summary> /// <param name="input">Instance of GetStatsByDomain to be compared</param> /// <returns>Boolean</returns> public bool Equals(GetStatsByDomain input) { if (input == null) { return(false); } return(base.Equals(input)); }
/// <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> 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)) { // 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; } }