mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-03-25 10:48:47 +00:00
21 lines
458 B
C#
21 lines
458 B
C#
namespace Artemis.WebClient.Workshop.Handlers.UploadHandlers;
|
|
|
|
public class ApiResult
|
|
{
|
|
public bool IsSuccess { get; set; }
|
|
public string? Message { get; set; }
|
|
|
|
public static ApiResult FromFailure(string? message)
|
|
{
|
|
return new ApiResult
|
|
{
|
|
IsSuccess = false,
|
|
Message = message
|
|
};
|
|
}
|
|
|
|
public static ApiResult FromSuccess()
|
|
{
|
|
return new ApiResult {IsSuccess = true};
|
|
}
|
|
} |