mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
reformatted models
This commit is contained in:
@@ -1,29 +1,24 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CanvasModel.Reports;
|
||||
public class ReportDescriptionModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("report")]
|
||||
public string Report { get; set; }
|
||||
|
||||
namespace Model.Reports {
|
||||
|
||||
// ReSharper disable MemberCanBePrivate.Global
|
||||
// ReSharper disable ClassNeverInstantiated.Global
|
||||
public class ReportDescriptionModel {
|
||||
|
||||
[JsonPropertyName("report")]
|
||||
public string Report { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("parameters")]
|
||||
public Dictionary<string, ReportParameterDescriptionModel>? Parameters { get; set; }
|
||||
}
|
||||
[JsonPropertyName("parameters")]
|
||||
public Dictionary<string, ReportParameterDescriptionModel>? Parameters { get; set; }
|
||||
}
|
||||
|
||||
public class ReportParameterDescriptionModel {
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[JsonPropertyName("required")]
|
||||
public bool Required { get; set; }
|
||||
}
|
||||
public class ReportParameterDescriptionModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[JsonPropertyName("required")]
|
||||
public bool Required { get; set; }
|
||||
}
|
||||
@@ -1,47 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using CanvasModel.Discussions;
|
||||
|
||||
namespace CanvasModel.Reports;
|
||||
public class ReportModel
|
||||
{
|
||||
|
||||
using Model.Discussions;
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
namespace Model.Reports {
|
||||
|
||||
public class ReportModel {
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("report")]
|
||||
public string Report { get; set; }
|
||||
|
||||
[JsonPropertyName("file_url")]
|
||||
public string? FileUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("attachment")]
|
||||
public FileAttachmentModel? Attachment { get; set; }
|
||||
|
||||
[JsonPropertyName("status")]
|
||||
public string Status { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("started_at")]
|
||||
public DateTime? StartedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("ended_at")]
|
||||
public DateTime? EndedAt { get; set; }
|
||||
|
||||
// the fields in this object can vary wildly depending on the report type, so for now we will loosely type it
|
||||
// like this
|
||||
[JsonPropertyName("parameters")]
|
||||
public Dictionary<string, object> Parameters { get; set; }
|
||||
|
||||
[JsonPropertyName("progress")]
|
||||
public double? Progress { get; set; }
|
||||
|
||||
[JsonPropertyName("current_line")]
|
||||
public ulong? CurrentLine { get; set; }
|
||||
}
|
||||
[JsonPropertyName("report")]
|
||||
public string Report { get; set; }
|
||||
|
||||
[JsonPropertyName("file_url")]
|
||||
public string? FileUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("attachment")]
|
||||
public FileAttachmentModel? Attachment { get; set; }
|
||||
|
||||
[JsonPropertyName("status")]
|
||||
public string Status { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("started_at")]
|
||||
public DateTime? StartedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("ended_at")]
|
||||
public DateTime? EndedAt { get; set; }
|
||||
|
||||
// the fields in this object can vary wildly depending on the report type, so for now we will loosely type it
|
||||
// like this
|
||||
[JsonPropertyName("parameters")]
|
||||
public Dictionary<string, object> Parameters { get; set; }
|
||||
|
||||
[JsonPropertyName("progress")]
|
||||
public double? Progress { get; set; }
|
||||
|
||||
[JsonPropertyName("current_line")]
|
||||
public ulong? CurrentLine { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user