コード例 #1
0
 public ReportAction(GUIContent content, ReportCallback callback)
 {
     this.Content  = content;
     this.Callback = callback;
 }
コード例 #2
0
 /// <summary>
 /// This will create and add a new report to the report system and be visible in the Report Window. This will only have one action to fix the report.
 /// </summary>
 /// <param name="name">Name of the report</param>
 /// <param name="description">Description to why this report exists and/or what Trail is doing behind the scenes.</param>
 /// <param name="category">Category the report should show up in. Category is a mask and can show up in multiple categories.</param>
 /// <param name="httpReference">A reference link to open a web page for the users to read more about the report.</param>
 /// <param name="stateCheck">A function to check whether to show or hide the report from the window.</param>
 /// <param name="actionName">Action name, what the button should say in the report window.</param>
 /// <param name="callback">The callback of the action to fix the report.</param>
 public static Report Create(string name, string description, ReportCategory category, string httpReference, ReportStateCheck stateCheck, string actionName, ReportCallback callback, bool threaded)
 {
     return(Create(name, description, category, httpReference, stateCheck, threaded, new ReportAction(actionName, callback)));
 }
コード例 #3
0
 public ReportAction(string name, ReportCallback callback) : this(new GUIContent(name), callback)
 {
 }
コード例 #4
0
 /// <summary>
 /// This will create and add a new report to the report system and be visible in the Report Window.
 /// Without description and http reference, basically giving no information to the users.
 /// </summary>
 /// <param name="name">Name of the report</param>
 /// <param name="category">Category the report should show up in. Category is a mask and can show up in multiple categories.</param>
 /// <param name="stateCheck">A function to check whether to show or hide the report from the window.</param>
 /// <param name="actionName">Action name, what the button should say in the report window.</param>
 /// <param name="callback">The callback of the action to fix the report.</param>
 public static Report Create(string name, ReportCategory category, ReportStateCheck stateCheck, string actionName, ReportCallback callback, bool threaded)
 {
     return(Create(name, "", category, "", stateCheck, threaded, new ReportAction(actionName, callback)));
 }
コード例 #5
0
 /// <summary>
 /// This will create and add a new report to the report system and be visible in the Report Window. This will only have one action to fix the report.
 /// </summary>
 /// <param name="name">Name of the report</param>
 /// <param name="category">Category the report should show up in. Category is a mask and can show up in multiple categories.</param>
 /// <param name="httpReference">A reference link to open a web page for the users to read more about the report.</param>
 /// <param name="stateCheck">A function to check whether to show or hide the report from the window.</param>
 /// <param name="actionName">Action name, what the button should say in the report window.</param>
 /// <param name="callback">The callback of the action to fix the report.</param>
 public static Report Create(string name, ReportCategory category, string httpReference, ReportStateCheck stateCheck, string actionName, ReportCallback callback)
 {
     return(Create(name, "", category, httpReference, stateCheck, new ReportAction(actionName, callback)));
 }
コード例 #6
0
 /// <summary>
 /// This will create and add a new report to the report system and be visible in the Report Window.
 /// Without a http reference. The user won't be able to read more about this issue.
 /// </summary>
 /// <param name="name">Name of the report</param>
 /// <param name="description">Description to why this report exists and/or what Trail is doing behind the scenes.</param>
 /// <param name="category">Category the report should show up in. Category is a mask and can show up in multiple categories.</param>
 /// <param name="stateCheck">A function to check whether to show or hide the report from the window.</param>
 /// <param name="actionName">Action name, what the button should say in the report window.</param>
 /// <param name="callback">The callback of the action to fix the report.</param>
 public static Report Create(string name, string description, ReportCategory category, ReportStateCheck stateCheck, string actionName, ReportCallback callback)
 {
     return(Create(name, description, category, "", stateCheck, new ReportAction(actionName, callback)));
 }
コード例 #7
0
ファイル: Sentinel.cs プロジェクト: david3355/JenkinsSentinel
 public void RemoveReportListener(ReportCallback Listener)
 {
     eventListeners -= Listener;
 }
コード例 #8
0
ファイル: Sentinel.cs プロジェクト: david3355/JenkinsSentinel
 public void AddReportListener(ReportCallback Listener)
 {
     eventListeners += Listener;
 }