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.Threading;
using v2rayN.Handler;
using v2rayN.Model;
using v2rayN.Models;
namespace v2rayN
{

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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