/// <summary> /// Initializes a new instance of the <see cref="StreamRecordWrapper" /> class. /// </summary> /// <param name="TotalCounts">TotalCounts.</param> /// <param name="ActivityTime">.</param> /// <param name="HighlightMatch">highlighted text.</param> /// <param name="Ratings">Ratings.</param> /// <param name="Record">.</param> /// <param name="Recordtype">.</param> /// <param name="IsNewTile">.</param> /// <param name="BadgeCounts">BadgeCounts.</param> /// <param name="LastAction">LastAction.</param> /// <param name="IsLocal">Whether this object is local.</param> /// <param name="SortKey">.</param> public StreamRecordWrapper(SparcCountRecord TotalCounts = null, string ActivityTime = null, string HighlightMatch = null, RatingsRecord Ratings = null, Object Record = null, string Recordtype = null, bool?IsNewTile = null, SparcCountRecord BadgeCounts = null, SparcActionRecord LastAction = null, bool?IsLocal = null, string SortKey = null) { this.TotalCounts = TotalCounts; this.ActivityTime = ActivityTime; this.HighlightMatch = HighlightMatch; this.Ratings = Ratings; this.Record = Record; this.Recordtype = Recordtype; this.IsNewTile = IsNewTile; this.BadgeCounts = BadgeCounts; this.LastAction = LastAction; this.IsLocal = IsLocal; this.SortKey = SortKey; }
/// <summary> /// Initializes a new instance of the <see cref="GetTileCountsResult" /> class. /// </summary> /// <param name="Counts">Counts (required).</param> /// <param name="Hdr">Hdr (required).</param> public GetTileCountsResult(SparcCountRecord Counts = null, ResponseHeaderRecord Hdr = null) { // to ensure "Counts" is required (not null) if (Counts == null) { throw new InvalidDataException("Counts is a required property for GetTileCountsResult and cannot be null"); } else { this.Counts = Counts; } // to ensure "Hdr" is required (not null) if (Hdr == null) { throw new InvalidDataException("Hdr is a required property for GetTileCountsResult and cannot be null"); } else { this.Hdr = Hdr; } }