Add basic project management
3 files changed, 34 insertions, 0 deletions
diff --git a/BugMine.Sdk/Events/State/ProjectInfo.cs b/BugMine.Sdk/Events/State/ProjectInfo.cs
new file mode 100644
index 0000000..2d15bff
--- /dev/null
+++ b/BugMine.Sdk/Events/State/ProjectInfo.cs
@@ -0,0 +1,11 @@
+using LibMatrix.EventTypes;
+
+namespace BugMine.Web.Classes;
+
+[MatrixEvent(EventName = EventId)]
+public class ProjectInfo : EventContent {
+ public const string EventId = "gay.rory.bugmine.project_info";
+ public string? Name { get; set; }
+ public string? ProjectIcon { get; set; }
+ public string? Repository { get; set; }
+}
\ No newline at end of file
diff --git a/BugMine.Sdk/Events/Timeline/BugMineIssueComment.cs b/BugMine.Sdk/Events/Timeline/BugMineIssueComment.cs
new file mode 100644
index 0000000..50c73a1
--- /dev/null
+++ b/BugMine.Sdk/Events/Timeline/BugMineIssueComment.cs
@@ -0,0 +1,11 @@
+using LibMatrix.EventTypes;
+
+namespace BugMine.Web.Classes;
+
+[MatrixEvent(EventName = EventId)]
+public class BugMineIssueComment : TimelineEventContent {
+ public const string EventId = "gay.rory.bugmine.comment";
+ public string Comment { get; set; }
+ public string Author { get; set; }
+ public DateTime Timestamp { get; set; }
+}
\ No newline at end of file
diff --git a/BugMine.Sdk/Events/Timeline/BugMineIssueData.cs b/BugMine.Sdk/Events/Timeline/BugMineIssueData.cs
new file mode 100644
index 0000000..480102a
--- /dev/null
+++ b/BugMine.Sdk/Events/Timeline/BugMineIssueData.cs
@@ -0,0 +1,12 @@
+using LibMatrix.EventTypes;
+
+namespace BugMine.Web.Classes;
+
+[MatrixEvent(EventName = ProjectInfo.EventId)]
+public class BugMineIssueData : TimelineEventContent {
+ public const string EventId = "gay.rory.bugmine.issue";
+ public string Name { get; set; }
+ public string? AssignedTo { get; set; }
+ public string? Status { get; set; }
+ public string? Priority { get; set; }
+}
\ No newline at end of file
|