示例#1
0
文件: ReportInfo.cs 项目: 0anion0/IBN
 /// <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);
 }
示例#2
0
 /// <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);
     }
 }
示例#3
0
 public void SetReportCategory(ReportInfo report, ReportCategoryInfo category)
 {
     SetReportCategory(report.Id, category == null?-1:category.Id);
 }
示例#4
0
 /// <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));
 }
示例#5
0
 public void SetReportCategory(ReportInfo report, ReportCategoryInfo category)
 {
     SetReportCategory(report.Id, category==null?-1:category.Id);
 }
示例#6
0
 /// <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);
 }