mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-03-19 23:28:23 -04:00
33 lines
1.3 KiB
C#
33 lines
1.3 KiB
C#
//-----------------------------------------------------------------------
|
|
// <copyright file="StatusResponse.cs" company="lanedirt">
|
|
// Copyright (c) lanedirt. All rights reserved.
|
|
// Licensed under the AGPLv3 license. See LICENSE.md file in the project root for full license information.
|
|
// </copyright>
|
|
//-----------------------------------------------------------------------
|
|
|
|
namespace AliasVault.Shared.Models.WebApi.Auth;
|
|
|
|
/// <summary>
|
|
/// Response model for the status endpoint.
|
|
/// </summary>
|
|
public class StatusResponse
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether the client version is supported by this API, as
|
|
/// determined by the server based on the client provided header.
|
|
/// </summary>
|
|
public required bool ClientVersionSupported { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the API version of the server. This is used by the client to determine if it
|
|
/// is compatible with the server or if the server should be updated to a newer version.
|
|
/// </summary>
|
|
public required string ServerVersion { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the latest vault revision number for the authenticated user, which the client
|
|
/// can use to determine if it should refresh the vault from the server.
|
|
/// </summary>
|
|
public required long VaultRevision { get; set; }
|
|
}
|