mirror of
https://github.com/bitwarden/server.git
synced 2026-02-07 17:33:11 +08:00
22 lines
470 B
C#
22 lines
470 B
C#
using System;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Bit.Core.Models.Api
|
|
{
|
|
public abstract class ResponseModel
|
|
{
|
|
public ResponseModel(string obj)
|
|
{
|
|
if(string.IsNullOrWhiteSpace(obj))
|
|
{
|
|
throw new ArgumentNullException(nameof(obj));
|
|
}
|
|
|
|
Object = obj;
|
|
}
|
|
|
|
[JsonProperty(Order = -200)] // Always the first property
|
|
public string Object { get; private set; }
|
|
}
|
|
}
|