reformatted models

This commit is contained in:
2023-01-04 17:22:36 -07:00
parent c8175971b7
commit c28230691e
122 changed files with 3812 additions and 4005 deletions

View File

@@ -1,36 +1,36 @@
using System;
namespace Model.Authentications {
// NOTE: the api documentation for this model is incorrect
public class AuthenticationEventModel {
[JsonPropertyName("id")]
public string Id { get; set; }
[JsonPropertyName("created_at")]
public DateTime CreatedAt { get; set; }
[JsonPropertyName("event_type")]
public string EventType { get; set; }
[JsonPropertyName("links")]
public AuthenticationEventLinksModel Links { get; set; }
}
namespace CanvasModel.Authentications;
// NOTE: the api documentation for this model is incorrect
public class AuthenticationEventModel
{
public struct AuthenticationEventLinksModel {
[JsonPropertyName("login")]
public ulong Login { get; set; }
[JsonPropertyName("account")]
public ulong Account { get; set; }
[JsonPropertyName("user")]
public ulong User { get; set; }
[JsonPropertyName("page_view")]
public ulong? PageView { get; set; }
}
[JsonPropertyName("id")]
public string Id { get; set; }
[JsonPropertyName("created_at")]
public DateTime CreatedAt { get; set; }
[JsonPropertyName("event_type")]
public string EventType { get; set; }
[JsonPropertyName("links")]
public AuthenticationEventLinksModel Links { get; set; }
}
public struct AuthenticationEventLinksModel
{
[JsonPropertyName("login")]
public ulong Login { get; set; }
[JsonPropertyName("account")]
public ulong Account { get; set; }
[JsonPropertyName("user")]
public ulong User { get; set; }
[JsonPropertyName("page_view")]
public ulong? PageView { get; set; }
}

View File

@@ -1,11 +1,11 @@
using System.Collections.Generic;
namespace Model.Authentications {
public struct AuthenticationEventsResponseModel {
[JsonPropertyName("events")]
public IEnumerable<AuthenticationEventModel> Events { get; set; }
}
namespace CanvasModel.Authentications;
public struct AuthenticationEventsResponseModel
{
[JsonPropertyName("events")]
public IEnumerable<AuthenticationEventModel> Events { get; set; }
}