mirror of
https://github.com/bitwarden/server
synced 2025-12-20 02:03:46 +00:00
push registration through relay apis
This commit is contained in:
22
src/Core/Models/Api/Request/PushUpdateRequestModel.cs
Normal file
22
src/Core/Models/Api/Request/PushUpdateRequestModel.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Bit.Core.Models.Api
|
||||
{
|
||||
public class PushUpdateRequestModel
|
||||
{
|
||||
public PushUpdateRequestModel()
|
||||
{ }
|
||||
|
||||
public PushUpdateRequestModel(IEnumerable<string> deviceIds, string organizationId)
|
||||
{
|
||||
DeviceIds = deviceIds;
|
||||
OrganizationId = organizationId;
|
||||
}
|
||||
|
||||
[Required]
|
||||
public IEnumerable<string> DeviceIds { get; set; }
|
||||
[Required]
|
||||
public string OrganizationId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user