/// <summary> /// Initializes a new instance of the <see cref="ReportInfo"/> class. /// </summary> /// <param name="id">The id.</param> /// <param name="innerInfo">The inner info.</param> /// <param name="categoryId">The category id.</param> /// <param name="categoryName">Name of the category.</param> internal ReportInfo(int id, UserReportInfo innerInfo, int categoryId, string categoryName) { _id = id; _innerInfo = innerInfo; if(categoryName!=null) _category = new ReportCategoryInfo(categoryId, categoryName); }
/// <summary> /// Determines whether [contains] [the specified report]. /// </summary> /// <param name="report">The report.</param> /// <returns> /// <c>true</c> if [contains] [the specified report]; otherwise, <c>false</c>. /// </returns> public virtual bool Contains(UserReportInfo report) { return this.List.Contains(report); }
/// <summary> /// Adds the specified report. /// </summary> /// <param name="report">The report.</param> /// <returns></returns> public virtual int Add(UserReportInfo report) { return this.List.Add(report); }
/// <summary> /// Removes the specified report. /// </summary> /// <param name="report">The report.</param> public virtual void Remove(UserReportInfo report) { this.List.Remove(report); }
/// <summary> /// Adds the specified report. /// </summary> /// <param name="report">The report.</param> /// <returns></returns> public virtual int Add(UserReportInfo report) { return(this.List.Add(report)); }
/// <summary> /// Determines whether [contains] [the specified report]. /// </summary> /// <param name="report">The report.</param> /// <returns> /// <c>true</c> if [contains] [the specified report]; otherwise, <c>false</c>. /// </returns> public virtual bool Contains(UserReportInfo report) { return(this.List.Contains(report)); }