mirror of
https://github.com/2dust/v2rayN.git
synced 2026-05-18 23:54:49 +03:00
8090799ccc
Move many model classes into new sub-namespaces (ServiceLib.Models.CoreConfigs, ServiceLib.Models.Configs, ServiceLib.Models.Dto, ServiceLib.Models.Entities). Update GlobalUsings in ServiceLib, v2rayN.Desktop, v2rayN and add a tests GlobalUsings file to reference the new namespaces. Adjust static using directives in ClashApiManager and ClashProxiesViewModel to use ServiceLib.Models.Dto. This is a reorganization/rename of files and namespaces with no functional changes.
27 lines
506 B
C#
27 lines
506 B
C#
namespace ServiceLib.Models.Dto;
|
|
|
|
public class RetResult
|
|
{
|
|
public bool Success { get; set; }
|
|
public string? Msg { get; set; }
|
|
public object? Data { get; set; }
|
|
|
|
public RetResult(bool success = false)
|
|
{
|
|
Success = success;
|
|
}
|
|
|
|
public RetResult(bool success, string? msg)
|
|
{
|
|
Success = success;
|
|
Msg = msg;
|
|
}
|
|
|
|
public RetResult(bool success, string? msg, object? data)
|
|
{
|
|
Success = success;
|
|
Msg = msg;
|
|
Data = data;
|
|
}
|
|
}
|