mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
scafolded project
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
using Model.Discussions;
|
||||
using Model.Submissions;
|
||||
|
||||
namespace Model.Conversations {
|
||||
|
||||
public class ConversationMessageModel {
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("body")]
|
||||
public string Body { get; set; }
|
||||
|
||||
[JsonPropertyName("author_id")]
|
||||
public ulong AuthorId { get; set; }
|
||||
|
||||
[JsonPropertyName("generated")]
|
||||
public bool Generated { get; set; }
|
||||
|
||||
[JsonPropertyName("media_comment")]
|
||||
public MediaCommentModel? MediaComment { get; set; }
|
||||
|
||||
[JsonPropertyName("forwarded_messages")]
|
||||
public IEnumerable<ConversationMessageModel> ForwardedMessages { get; set; }
|
||||
|
||||
[JsonPropertyName("attachments")]
|
||||
public IEnumerable<FileAttachmentModel> Attachments { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
|
||||
namespace Model.Conversations {
|
||||
|
||||
public class ConversationModel {
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("subject")]
|
||||
public string Subject { get; set; }
|
||||
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
|
||||
[JsonPropertyName("last_message")]
|
||||
public string LastMessage { get; set; }
|
||||
|
||||
[JsonPropertyName("last_message_at")]
|
||||
public DateTime? LastMessageAt { get; set; }
|
||||
|
||||
[JsonPropertyName("message_count")]
|
||||
public uint MessageCount { get; set; }
|
||||
|
||||
[JsonPropertyName("subscribed")]
|
||||
public bool? Subscribed { get; set; }
|
||||
|
||||
[JsonPropertyName("private")]
|
||||
public bool? Private { get; set; }
|
||||
|
||||
[JsonPropertyName("starred")]
|
||||
public bool? Starred { get; set; }
|
||||
|
||||
[JsonPropertyName("properties")]
|
||||
public IEnumerable<string>? Properties { get; set; }
|
||||
|
||||
[JsonPropertyName("audience")]
|
||||
public IEnumerable<ulong>? Audience { get; set; }
|
||||
|
||||
[JsonPropertyName("audience_contexts")]
|
||||
public Dictionary<string, Dictionary<string, IEnumerable<string>>>? AudienceContexts { get; set; }
|
||||
|
||||
[JsonPropertyName("avatar_url")]
|
||||
public string AvatarUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("participants")]
|
||||
public IEnumerable<ConversationParticipantModel>? Participants { get; set; }
|
||||
|
||||
[JsonPropertyName("visible")]
|
||||
public bool? Visible { get; set; }
|
||||
|
||||
[JsonPropertyName("context_name")]
|
||||
public string ContextName { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
|
||||
|
||||
|
||||
namespace Model.Conversations {
|
||||
|
||||
public class ConversationParticipantModel {
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("full_name")]
|
||||
public string FullName { get; set; }
|
||||
|
||||
[JsonPropertyName("avatar_url")]
|
||||
public string? AvatarUrl { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace Model.Conversations {
|
||||
|
||||
public class DetailedConversationModel : ConversationModel {
|
||||
|
||||
[JsonPropertyName("messages")]
|
||||
public IEnumerable<ConversationMessageModel> Messages { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user