2019-04-12 17:42:45 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2021-05-21 15:13:54 +02:00
|
|
|
|
using Bit.Core.Enums;
|
|
|
|
|
using Bit.Core.Models.Api;
|
2019-04-12 17:42:45 +02:00
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Models.Response
|
|
|
|
|
{
|
|
|
|
|
public class CipherResponse
|
|
|
|
|
{
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
public string OrganizationId { get; set; }
|
|
|
|
|
public string FolderId { get; set; }
|
|
|
|
|
public Enums.CipherType Type { get; set; }
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public string Notes { get; set; }
|
|
|
|
|
public List<FieldApi> Fields { get; set; }
|
|
|
|
|
public LoginApi Login { get; set; }
|
|
|
|
|
public CardApi Card { get; set; }
|
|
|
|
|
public IdentityApi Identity { get; set; }
|
|
|
|
|
public SecureNoteApi SecureNote { get; set; }
|
|
|
|
|
public bool Favorite { get; set; }
|
|
|
|
|
public bool Edit { get; set; }
|
2020-06-11 22:16:43 +02:00
|
|
|
|
public bool ViewPassword { get; set; } = true; // Fallback for old server versions
|
2019-04-12 17:42:45 +02:00
|
|
|
|
public bool OrganizationUseTotp { get; set; }
|
|
|
|
|
public DateTime RevisionDate { get; set; }
|
|
|
|
|
public List<AttachmentResponse> Attachments { get; set; }
|
|
|
|
|
public List<PasswordHistoryResponse> PasswordHistory { get; set; }
|
|
|
|
|
public List<string> CollectionIds { get; set; }
|
2020-05-20 19:35:20 +02:00
|
|
|
|
public DateTime? DeletedDate { get; set; }
|
2021-05-21 15:13:54 +02:00
|
|
|
|
public CipherRepromptType Reprompt { get; set; }
|
2019-04-12 17:42:45 +02:00
|
|
|
|
}
|
|
|
|
|
}
|