/// <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> /// 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); } }
public void SetReportCategory(ReportInfo report, ReportCategoryInfo category) { SetReportCategory(report.Id, category == null?-1:category.Id); }
/// <summary> /// Gets the reports. /// </summary> /// <param name="category">The category.</param> /// <returns></returns> public ReportInfo[] GetReports(ReportCategoryInfo category) { return(GetReports(category == null?null:category.Name)); }
public void SetReportCategory(ReportInfo report, ReportCategoryInfo category) { SetReportCategory(report.Id, category==null?-1:category.Id); }
/// <summary> /// Gets the reports. /// </summary> /// <param name="category">The category.</param> /// <returns></returns> public ReportInfo[] GetReports(ReportCategoryInfo category) { return GetReports(category==null?null:category.Name); }