forked from Azure/azure-sdk-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReviewRevisionPageModels.cs
More file actions
47 lines (43 loc) · 1.95 KB
/
ReviewRevisionPageModels.cs
File metadata and controls
47 lines (43 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System.Collections.Generic;
using ApiView;
using APIView;
using APIViewWeb.Models;
namespace APIViewWeb.LeanModels
{
public enum ReviewContentModelDirective
{
ProceedWithPageLoad = 0,
TryGetlegacyReview,
ErrorDueToInvalidAPIRevisonProceedWithPageLoad,
ErrorDueToInvalidAPIRevisonRedirectToIndexPage
}
public class ReviewContentModel
{
public ReviewListItemModel Review { get; set; }
public NavigationItem[] Navigation { get; set; }
public CodeLineModel[] codeLines { get; set; }
public IEnumerable<APIRevisionListItemModel> APIRevisions { get; set; }
public APIRevisionListItemModel ActiveAPIRevision { get; set; }
public APIRevisionListItemModel DiffAPIRevision { get; set; }
public int TotalActiveConversations { get; set; }
public int ActiveConversationsInActiveAPIRevision { get; set; }
public int ActiveConversationsInSampleRevisions { get; set; }
public HashSet<string> PreferredApprovers = new HashSet<string>();
public HashSet<GithubUser> TaggableUsers { get; set; }
public bool PageHasLoadableSections { get; set; }
public string NotificationMessage { get; set; }
public ReviewContentModelDirective Directive { get; set; }
public Dictionary<string, ReviewContentModel> CrossLanguageViewContent { get; set; } = new Dictionary<string, ReviewContentModel>();
public bool HasFatalDiagnostics { get; set; }
}
public class ReviewBadgeModel
{
public ReviewListItemModel Review { get; set; }
public IEnumerable<APIRevisionListItemModel> APIRevisions { get; set; }
public APIRevisionListItemModel ActiveAPIRevision { get; set; }
public APIRevisionListItemModel DiffAPIRevision { get; set; }
public UserPreferenceModel UserPreference { get; set; }
public bool? ShowDocumentation { get; set; }
public bool? ShowDiffOnly { get; set; }
}
}