Initialize repository
Added basic info to get in game for like...August 2016 ;-; It's not much but it's a start
This commit is contained in:
13
RecRoomArchive.Models/Common/OkResponse.cs
Normal file
13
RecRoomArchive.Models/Common/OkResponse.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace RecRoomArchive.Models.Common
|
||||
{
|
||||
public class OkResponse
|
||||
{
|
||||
public static OkResponse Ok(string? message = null) => new() { Success = true, Message = message };
|
||||
public static OkResponse Fail(string message) => new() { Success = false, Message = message };
|
||||
|
||||
[JsonPropertyName("Success")] public bool Success { get; set; }
|
||||
[JsonPropertyName("Message")] public string? Message { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user