-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RealTime Comment Updates (#8868)
* Add Signal R package * Add SignalR Service * Push Comment Updates to All clients from controller * Hookup SignalR ClientSide * Two way comment push * Add Real Time Comment Updates
- Loading branch information
1 parent
5835f21
commit 3051445
Showing
21 changed files
with
600 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using System.Text.Json.Serialization; | ||
using APIViewWeb.LeanModels; | ||
|
||
namespace APIViewWeb.DTOs | ||
{ | ||
public enum CommentThreadUpdateAction | ||
{ | ||
CommentCreated = 0, | ||
CommentTextUpdate, | ||
CommentResolved, | ||
CommentUnResolved, | ||
CommentUpVoteToggled, | ||
CommentDeleted | ||
} | ||
|
||
public class CommentUpdatesDto | ||
{ | ||
[JsonPropertyName("commentThreadUpdateAction")] | ||
public CommentThreadUpdateAction CommentThreadUpdateAction { get; set; } | ||
[JsonPropertyName("nodeId")] | ||
public string NodeId { get; set; } | ||
[JsonPropertyName("nodeIdHashed")] | ||
public string NodeIdHashed { get; set; } | ||
[JsonPropertyName("reviewId")] | ||
public string ReviewId { get; set; } | ||
[JsonPropertyName("revisionId")] | ||
public string RevisionId { get; set; } | ||
[JsonPropertyName("commentId")] | ||
public string CommentId { get; set; } | ||
[JsonPropertyName("elementId")] | ||
public string ElementId { get; set; } | ||
[JsonPropertyName("commentText")] | ||
public string CommentText { get; set; } | ||
[JsonPropertyName("comment")] | ||
public CommentItemModel Comment { get; set; } | ||
[JsonPropertyName("resolvedBy")] | ||
public string ResolvedBy { get; set; } | ||
[JsonPropertyName("associatedRowPositionInGroup")] | ||
public int? AssociatedRowPositionInGroup { get; set; } | ||
[JsonPropertyName("allowAnyOneToResolve")] | ||
public bool? AllowAnyOneToResolve { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.