mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Initial commit
This commit is contained in:
20
KfChatDotNetGui/Models/ForumIdentityModel.cs
Normal file
20
KfChatDotNetGui/Models/ForumIdentityModel.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace KfChatDotNetGui.Models;
|
||||
|
||||
public class ForumIdentityModel
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; }
|
||||
[JsonProperty("username")]
|
||||
public string Username { get; set; }
|
||||
[JsonProperty("avatar_url")]
|
||||
public Uri AvatarUrl { get; set; }
|
||||
// Guessing it'll be the user ID as an int but no idea as this list is empty for me
|
||||
[JsonProperty("ignored_users")]
|
||||
public List<string> IgnoredUsers { get; set; }
|
||||
[JsonProperty("is_staff")]
|
||||
public bool IsStaff { get; set; }
|
||||
}
|
||||
14
KfChatDotNetGui/Models/RoomSettingsModel.cs
Normal file
14
KfChatDotNetGui/Models/RoomSettingsModel.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace KfChatDotNetGui.Models;
|
||||
|
||||
public class RoomSettingsModel
|
||||
{
|
||||
public class RoomList
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public int Id { get; set; }
|
||||
}
|
||||
|
||||
public List<RoomList> Rooms { get; set; }
|
||||
}
|
||||
12
KfChatDotNetGui/Models/SettingsModel.cs
Normal file
12
KfChatDotNetGui/Models/SettingsModel.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
|
||||
namespace KfChatDotNetGui.Models;
|
||||
|
||||
public class SettingsModel
|
||||
{
|
||||
public string XfSessionToken { get; set; }
|
||||
public Uri WsUri { get; set; }
|
||||
public int ReconnectTimeout { get; set; }
|
||||
public string AntiDdosPow { get; set; }
|
||||
public string Username { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user