mirror of
https://github.com/bitwarden/server.git
synced 2025-06-17 00:03:17 -05:00
22 lines
471 B
C#
22 lines
471 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; }
|
|
}
|
|
}
|