Download src/SilkroadBot.UI/ViewModels/ViewModels.cs from Ahmedramadan24/SilkroadBot: direct link, hf CLI and curl.
- Browser
- Download file 1.83 kB
-
https://huggingface.co/Ahmedramadan24/SilkroadBot/resolve/main/src/SilkroadBot.UI/ViewModels/ViewModels.cs
- Command line
-
hf download hf://Ahmedramadan24/SilkroadBot/src/SilkroadBot.UI/ViewModels/ViewModels.cs
-
curl -L -o ViewModels.cs https://huggingface.co/Ahmedramadan24/SilkroadBot/resolve/main/src/SilkroadBot.UI/ViewModels/ViewModels.cs
1.83 kB
| using CommunityToolkit.Mvvm.ComponentModel; | |
| using CommunityToolkit.Mvvm.Input; | |
| using System.Collections.ObjectModel; | |
| namespace SilkroadBot.UI.ViewModels; | |
| public partial class MainViewModel : ObservableObject | |
| { | |
| [] private string _currentPage = "Dashboard"; | |
| [] private string _statusText = "Ready"; | |
| [] private int _activeBotCount; | |
| } | |
| public partial class DashboardViewModel : ObservableObject | |
| { | |
| [] private int _activeBotsCount; | |
| [] private int _connectedCount; | |
| [] private int _pluginsCount; | |
| [] private string _uptime = "00:00:00"; | |
| public ObservableCollection<string> RecentLogs { get; } = new(); | |
| } | |
| public partial class ProfilesViewModel : ObservableObject | |
| { | |
| [] private string _selectedProfileId = ""; | |
| public ObservableCollection<ProfileListItem> Profiles { get; } = new(); | |
| } | |
| public record ProfileListItem(string Id, string Name, string Status); | |
| public partial class PluginsViewModel : ObservableObject | |
| { | |
| public ObservableCollection<PluginListItem> Plugins { get; } = new(); | |
| } | |
| public record PluginListItem(string Name, string Version, string Author, bool IsRunning, string Description); | |
| public partial class PacketMonitorViewModel : ObservableObject | |
| { | |
| [] private bool _isCapturing = true; | |
| [] private string _opcodeFilter = ""; | |
| public ObservableCollection<PacketEntry> Packets { get; } = new(); | |
| } | |
| public record PacketEntry(string Time, string Direction, string Opcode, string Name, int Size, string HexData); | |
| public partial class LogsViewModel : ObservableObject | |
| { | |
| [] private string _levelFilter = "All"; | |
| public ObservableCollection<string> Logs { get; } = new(); | |
| } | |