Rename Model to Models

pull/4917/head
2dust 2024-03-31 08:08:06 +08:00
parent 13bc2d0340
commit 2004df8337
75 changed files with 77 additions and 77 deletions

View File

@ -2,7 +2,7 @@
using System.Windows; using System.Windows;
using System.Windows.Threading; using System.Windows.Threading;
using v2rayN.Handler; using v2rayN.Handler;
using v2rayN.Model; using v2rayN.Models;
namespace v2rayN namespace v2rayN
{ {

View File

@ -1,4 +1,4 @@
using v2rayN.Model; using v2rayN.Models;
namespace v2rayN namespace v2rayN
{ {

View File

@ -1,7 +1,7 @@
using System.Data; using System.Data;
using System.IO; using System.IO;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using v2rayN.Model; using v2rayN.Models;
namespace v2rayN.Handler namespace v2rayN.Handler
{ {

View File

@ -1,5 +1,5 @@
using System.IO; using System.IO;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
namespace v2rayN.Handler namespace v2rayN.Handler

View File

@ -1,6 +1,6 @@
using System.Net; using System.Net;
using System.Net.NetworkInformation; using System.Net.NetworkInformation;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
namespace v2rayN.Handler namespace v2rayN.Handler

View File

@ -1,6 +1,6 @@
using System.Net; using System.Net;
using System.Net.NetworkInformation; using System.Net.NetworkInformation;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
namespace v2rayN.Handler namespace v2rayN.Handler

View File

@ -2,7 +2,7 @@
using System.IO; using System.IO;
using System.Reactive.Linq; using System.Reactive.Linq;
using System.Text; using System.Text;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
namespace v2rayN.Handler namespace v2rayN.Handler

View File

@ -4,7 +4,7 @@ using System.Net;
using System.Net.Http; using System.Net.Http;
using System.Net.Http.Headers; using System.Net.Http.Headers;
using System.Net.Sockets; using System.Net.Sockets;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
namespace v2rayN.Handler namespace v2rayN.Handler

View File

@ -4,7 +4,7 @@ using System.Text;
using System.Windows; using System.Windows;
using System.Windows.Input; using System.Windows.Input;
using System.Windows.Interop; using System.Windows.Interop;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
namespace v2rayN.Handler namespace v2rayN.Handler

View File

@ -1,5 +1,5 @@
using System.Runtime.Intrinsics.X86; using System.Runtime.Intrinsics.X86;
using v2rayN.Model; using v2rayN.Models;
namespace v2rayN.Handler namespace v2rayN.Handler
{ {

View File

@ -3,7 +3,7 @@ using Splat;
using System.Drawing; using System.Drawing;
using System.IO; using System.IO;
using System.Windows.Media.Imaging; using System.Windows.Media.Imaging;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
namespace v2rayN.Handler namespace v2rayN.Handler

View File

@ -1,6 +1,6 @@
using System.Collections.Concurrent; using System.Collections.Concurrent;
using System.Reactive.Linq; using System.Reactive.Linq;
using v2rayN.Model; using v2rayN.Models;
namespace v2rayN.Handler namespace v2rayN.Handler
{ {

View File

@ -1,6 +1,6 @@
using System.Collections.Specialized; using System.Collections.Specialized;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
namespace v2rayN.Handler namespace v2rayN.Handler

View File

@ -2,7 +2,7 @@
using System.Diagnostics; using System.Diagnostics;
using System.Net; using System.Net;
using System.Net.Sockets; using System.Net.Sockets;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
namespace v2rayN.Handler namespace v2rayN.Handler

View File

@ -1,4 +1,4 @@
using v2rayN.Model; using v2rayN.Models;
namespace v2rayN.Handler namespace v2rayN.Handler
{ {

View File

@ -1,6 +1,6 @@
using System.Net.WebSockets; using System.Net.WebSockets;
using System.Text; using System.Text;
using v2rayN.Model; using v2rayN.Models;
namespace v2rayN.Handler namespace v2rayN.Handler
{ {

View File

@ -1,19 +1,19 @@
using Grpc.Core; using Grpc.Core;
using Grpc.Net.Client; using Grpc.Net.Client;
using ProtosLib.Statistics; using ProtosLib.Statistics;
using v2rayN.Model; using v2rayN.Models;
namespace v2rayN.Handler namespace v2rayN.Handler
{ {
internal class StatisticsV2ray internal class StatisticsV2ray
{ {
private Model.Config _config; private Models.Config _config;
private GrpcChannel? _channel; private GrpcChannel? _channel;
private StatsService.StatsServiceClient? _client; private StatsService.StatsServiceClient? _client;
private bool _exitFlag; private bool _exitFlag;
private Action<ServerSpeedItem> _updateFunc; private Action<ServerSpeedItem> _updateFunc;
public StatisticsV2ray(Model.Config config, Action<ServerSpeedItem> update) public StatisticsV2ray(Models.Config config, Action<ServerSpeedItem> update)
{ {
_config = config; _config = config;
_updateFunc = update; _updateFunc = update;

View File

@ -1,5 +1,5 @@
using PacLib; using PacLib;
using v2rayN.Model; using v2rayN.Models;
namespace v2rayN.Handler namespace v2rayN.Handler
{ {

View File

@ -6,7 +6,7 @@ using System.Runtime.InteropServices;
using System.Text; using System.Text;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Windows; using System.Windows;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
namespace v2rayN.Handler namespace v2rayN.Handler

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
public class ComboItem public class ComboItem
{ {

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
/// <summary> /// <summary>
/// 本软件配置文件实体类 /// 本软件配置文件实体类

View File

@ -1,6 +1,6 @@
using System.Windows.Input; using System.Windows.Input;
namespace v2rayN.Model namespace v2rayN.Models
{ {
[Serializable] [Serializable]
public class CoreBasicItem public class CoreBasicItem

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
[Serializable] [Serializable]
public class ConfigOld public class ConfigOld

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
[Serializable] [Serializable]
public class CoreInfo public class CoreInfo

View File

@ -1,6 +1,6 @@
using SQLite; using SQLite;
namespace v2rayN.Model namespace v2rayN.Models
{ {
[Serializable] [Serializable]
public class DNSItem public class DNSItem

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
public enum EConfigType public enum EConfigType
{ {

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
public enum ECoreType public enum ECoreType
{ {

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
public enum EGlobalHotkey public enum EGlobalHotkey
{ {

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
public enum EInboundProtocol public enum EInboundProtocol
{ {

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
public enum EMove public enum EMove
{ {

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
public enum EServerColName public enum EServerColName
{ {

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
public enum ESpeedActionType public enum ESpeedActionType
{ {

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
public enum ESysProxyType public enum ESysProxyType
{ {

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
public enum ETransport public enum ETransport
{ {

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
public enum EViewAction public enum EViewAction
{ {

View File

@ -1,6 +1,6 @@
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace v2rayN.Model namespace v2rayN.Models
{ {
public class GitHubReleaseAsset public class GitHubReleaseAsset
{ {

View File

@ -1,6 +1,6 @@
using SQLite; using SQLite;
namespace v2rayN.Model namespace v2rayN.Models
{ {
[Serializable] [Serializable]
public class ProfileExItem public class ProfileExItem

View File

@ -1,6 +1,6 @@
using SQLite; using SQLite;
namespace v2rayN.Model namespace v2rayN.Models
{ {
[Serializable] [Serializable]
public class ProfileItem public class ProfileItem

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
[Serializable] [Serializable]
public class ProfileItemModel : ProfileItem public class ProfileItemModel : ProfileItem

View File

@ -1,6 +1,6 @@
using SQLite; using SQLite;
namespace v2rayN.Model namespace v2rayN.Models
{ {
[Serializable] [Serializable]
public class RoutingItem public class RoutingItem

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
[Serializable] [Serializable]
public class RoutingItemModel : RoutingItem public class RoutingItemModel : RoutingItem

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
[Serializable] [Serializable]
public class RulesItem public class RulesItem

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
[Serializable] [Serializable]
public class RulesItemModel : RulesItem public class RulesItemModel : RulesItem

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
[Serializable] [Serializable]
internal class ServerSpeedItem : ServerStatItem internal class ServerSpeedItem : ServerStatItem

View File

@ -1,6 +1,6 @@
using SQLite; using SQLite;
namespace v2rayN.Model namespace v2rayN.Models
{ {
[Serializable] [Serializable]
public class ServerStatItem public class ServerStatItem

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
[Serializable] [Serializable]
internal class ServerTestItem internal class ServerTestItem

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
public class SingboxConfig public class SingboxConfig
{ {

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
public class SsSIP008 public class SsSIP008
{ {

View File

@ -1,6 +1,6 @@
using SQLite; using SQLite;
namespace v2rayN.Model namespace v2rayN.Models
{ {
[Serializable] [Serializable]
public class SubItem public class SubItem

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
internal class SysProxyConfig internal class SysProxyConfig
{ {

View File

@ -1,6 +1,6 @@
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace v2rayN.Model namespace v2rayN.Models
{ {
/// <summary> /// <summary>
/// v2ray配置文件实体类 例子SampleConfig.txt /// v2ray配置文件实体类 例子SampleConfig.txt

View File

@ -1,4 +1,4 @@
namespace v2rayN.Model namespace v2rayN.Models
{ {
/// <summary> /// <summary>
/// Tcp伪装http的Request只要Host /// Tcp伪装http的Request只要Host

View File

@ -1,6 +1,6 @@
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace v2rayN.Model namespace v2rayN.Models
{ {
/// <summary> /// <summary>
/// https://github.com/2dust/v2rayN/wiki/ /// https://github.com/2dust/v2rayN/wiki/

View File

@ -6,7 +6,7 @@ using System.IO;
using System.Reactive; using System.Reactive;
using System.Windows; using System.Windows;
using v2rayN.Handler; using v2rayN.Handler;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
namespace v2rayN.ViewModels namespace v2rayN.ViewModels

View File

@ -4,7 +4,7 @@ using Splat;
using System.Reactive; using System.Reactive;
using System.Windows; using System.Windows;
using v2rayN.Handler; using v2rayN.Handler;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
namespace v2rayN.ViewModels namespace v2rayN.ViewModels

View File

@ -4,7 +4,7 @@ using Splat;
using System.Reactive; using System.Reactive;
using System.Windows; using System.Windows;
using v2rayN.Handler; using v2rayN.Handler;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
namespace v2rayN.ViewModels namespace v2rayN.ViewModels

View File

@ -15,7 +15,7 @@ using System.Text;
using System.Windows; using System.Windows;
using System.Windows.Media; using System.Windows.Media;
using v2rayN.Handler; using v2rayN.Handler;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
using v2rayN.Views; using v2rayN.Views;

View File

@ -4,7 +4,7 @@ using Splat;
using System.Reactive; using System.Reactive;
using System.Windows; using System.Windows;
using v2rayN.Handler; using v2rayN.Handler;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
namespace v2rayN.ViewModels namespace v2rayN.ViewModels

View File

@ -4,7 +4,7 @@ using Splat;
using System.Reactive; using System.Reactive;
using System.Windows; using System.Windows;
using v2rayN.Handler; using v2rayN.Handler;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
namespace v2rayN.ViewModels namespace v2rayN.ViewModels

View File

@ -5,7 +5,7 @@ using Splat;
using System.Reactive; using System.Reactive;
using System.Windows; using System.Windows;
using v2rayN.Handler; using v2rayN.Handler;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
using v2rayN.Views; using v2rayN.Views;
using Application = System.Windows.Application; using Application = System.Windows.Application;

View File

@ -5,7 +5,7 @@ using Splat;
using System.Reactive; using System.Reactive;
using System.Windows; using System.Windows;
using v2rayN.Handler; using v2rayN.Handler;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
using v2rayN.Views; using v2rayN.Views;

View File

@ -4,7 +4,7 @@ using Splat;
using System.Reactive; using System.Reactive;
using System.Windows; using System.Windows;
using v2rayN.Handler; using v2rayN.Handler;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
namespace v2rayN.ViewModels namespace v2rayN.ViewModels

View File

@ -7,7 +7,7 @@ using Splat;
using System.Reactive; using System.Reactive;
using System.Windows; using System.Windows;
using v2rayN.Handler; using v2rayN.Handler;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
using v2rayN.Views; using v2rayN.Views;

View File

@ -1,7 +1,7 @@
using ReactiveUI; using ReactiveUI;
using System.Reactive.Disposables; using System.Reactive.Disposables;
using System.Windows; using System.Windows;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.ViewModels; using v2rayN.ViewModels;
namespace v2rayN.Views namespace v2rayN.Views

View File

@ -3,7 +3,7 @@ using System.Reactive.Disposables;
using System.Windows; using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
using v2rayN.Handler; using v2rayN.Handler;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
using v2rayN.ViewModels; using v2rayN.ViewModels;

View File

@ -2,7 +2,7 @@
using System.Reactive.Disposables; using System.Reactive.Disposables;
using System.Windows; using System.Windows;
using v2rayN.Handler; using v2rayN.Handler;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.ViewModels; using v2rayN.ViewModels;
namespace v2rayN.Views namespace v2rayN.Views

View File

@ -3,7 +3,7 @@ using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
using System.Windows.Input; using System.Windows.Input;
using v2rayN.Handler; using v2rayN.Handler;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
namespace v2rayN.Views namespace v2rayN.Views

View File

@ -11,7 +11,7 @@ using System.Windows.Interop;
using System.Windows.Media; using System.Windows.Media;
using v2rayN.Base; using v2rayN.Base;
using v2rayN.Handler; using v2rayN.Handler;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.Resx; using v2rayN.Resx;
using v2rayN.ViewModels; using v2rayN.ViewModels;
using Point = System.Windows.Point; using Point = System.Windows.Point;

View File

@ -3,7 +3,7 @@ using System.Reactive.Linq;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Windows.Threading; using System.Windows.Threading;
using v2rayN.Handler; using v2rayN.Handler;
using v2rayN.Model; using v2rayN.Models;
namespace v2rayN.Views namespace v2rayN.Views
{ {

View File

@ -5,7 +5,7 @@ using System.Reactive.Disposables;
using System.Windows; using System.Windows;
using System.Windows.Media; using System.Windows.Media;
using v2rayN.Handler; using v2rayN.Handler;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.ViewModels; using v2rayN.ViewModels;
namespace v2rayN.Views namespace v2rayN.Views

View File

@ -1,7 +1,7 @@
using ReactiveUI; using ReactiveUI;
using System.Reactive.Disposables; using System.Reactive.Disposables;
using System.Windows; using System.Windows;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.ViewModels; using v2rayN.ViewModels;
namespace v2rayN.Views namespace v2rayN.Views

View File

@ -2,7 +2,7 @@
using System.Reactive.Disposables; using System.Reactive.Disposables;
using System.Windows; using System.Windows;
using System.Windows.Input; using System.Windows.Input;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.ViewModels; using v2rayN.ViewModels;
namespace v2rayN.Views namespace v2rayN.Views

View File

@ -2,7 +2,7 @@
using System.Reactive.Disposables; using System.Reactive.Disposables;
using System.Windows; using System.Windows;
using System.Windows.Input; using System.Windows.Input;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.ViewModels; using v2rayN.ViewModels;
namespace v2rayN.Views namespace v2rayN.Views

View File

@ -1,7 +1,7 @@
using ReactiveUI; using ReactiveUI;
using System.Reactive.Disposables; using System.Reactive.Disposables;
using System.Windows; using System.Windows;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.ViewModels; using v2rayN.ViewModels;
namespace v2rayN.Views namespace v2rayN.Views

View File

@ -3,7 +3,7 @@ using System.ComponentModel;
using System.Reactive.Disposables; using System.Reactive.Disposables;
using System.Windows; using System.Windows;
using System.Windows.Input; using System.Windows.Input;
using v2rayN.Model; using v2rayN.Models;
using v2rayN.ViewModels; using v2rayN.ViewModels;
namespace v2rayN.Views namespace v2rayN.Views