1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-18 09:13:15 +00:00

sync service

This commit is contained in:
Kyle Spearrin
2019-04-17 12:12:43 -04:00
parent 808fcea655
commit 818414eb37
7 changed files with 262 additions and 7 deletions

View File

@@ -0,0 +1,34 @@
using Bit.Core.Enums;
using System;
using System.Collections.Generic;
namespace Bit.Core.Models.Response
{
public class PushNotificationResponse
{
public NotificationType Type { get; set; }
public string Payload { get; set; }
}
public class SyncCipherNotification
{
public string Id { get; set; }
public string UserId { get; set; }
public string OrganizationId { get; set; }
public HashSet<string> CollectionIds { get; set; }
public DateTime RevisionDate { get; set; }
}
public class SyncFolderNotification
{
public string Id { get; set; }
public string UserId { get; set; }
public DateTime RevisionDate { get; set; }
}
public class UserNotification
{
public string UserId { get; set; }
public DateTime Date { get; set; }
}
}

View File

@@ -6,7 +6,7 @@ namespace Bit.Core.Models.Response
{
public ProfileResponse Profile { get; set; }
public List<FolderResponse> Folders { get; set; } = new List<FolderResponse>();
public List<CollectionResponse> Collections { get; set; } = new List<CollectionResponse>();
public List<CollectionDetailsResponse> Collections { get; set; } = new List<CollectionDetailsResponse>();
public List<CipherResponse> Ciphers { get; set; } = new List<CipherResponse>();
public DomainsResponse Domains { get; set; }
}