forked from nowfloats/ProjectAna
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ChatNode.GroupName, Added ActivityTracking to Simulator View an…
…d Click
- Loading branch information
Showing
19 changed files
with
280 additions
and
49 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,25 @@ | ||
using Microsoft.AspNetCore.Mvc; | ||
using ANAConversationPlatform.Models.Activity; | ||
using ANAConversationPlatform.Helpers; | ||
|
||
namespace ANAConversationPlatform.Controllers | ||
{ | ||
[Produces("application/json")] | ||
public class ActivityController : Controller | ||
{ | ||
[HttpGet] | ||
public ActionResult Summary(string nodeIds) | ||
{ | ||
var nodeIdList = nodeIds.Split(','); | ||
|
||
return Ok(new { Message = "Done" }); | ||
} | ||
|
||
[HttpPost] | ||
public ActionResult Track([FromBody]ChatActivityEvent activityEvent) | ||
{ | ||
MongoHelper.InsertActivityEvent(activityEvent); | ||
return Ok(); | ||
} | ||
} | ||
} |
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
18 changes: 18 additions & 0 deletions
18
ANAConversationPlatform/Models/Activity/ChatActivityItem.cs
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,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ANAConversationPlatform.Models.Activity | ||
{ | ||
public class ChatActivityEvent | ||
{ | ||
public string _id { get; set; } | ||
public string EventCategory { get; set; } | ||
public string EventChannel { get; set; } | ||
public string EventName { get; set; } | ||
public Dictionary<string, string> EventData { get; set; } | ||
public Dictionary<string, string> UserData { get; set; } | ||
public string UserId { get; set; } | ||
public string NodeId { get; set; } | ||
public DateTime EventDateTime { 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ANAConversationSimulator.Models | ||
{ | ||
public class ChatActivityEvent | ||
{ | ||
public string EventCategory { get; set; } | ||
public string EventChannel { get; set; } | ||
public string EventName { get; set; } | ||
public Dictionary<string, string> EventData { get; set; } | ||
public Dictionary<string, string> UserData { get; set; } | ||
public string UserId { get; set; } | ||
public string NodeId { get; set; } | ||
public DateTime EventDateTime { get; set; } | ||
} | ||
} |
Oops, something went wrong.