1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-11 15:17:44 +01:00
bitwarden-server/src/Core/Services/IOrganizationService.cs

18 lines
725 B
C#
Raw Normal View History

using System.Threading.Tasks;
using Bit.Core.Models.Business;
2017-03-09 03:45:08 +01:00
using Bit.Core.Models.Table;
using System;
2017-03-10 05:58:43 +01:00
using System.Collections.Generic;
namespace Bit.Core.Services
{
public interface IOrganizationService
{
Task<Tuple<Organization, OrganizationUser>> SignUpAsync(OrganizationSignup organizationSignup);
2017-03-12 04:42:27 +01:00
Task<OrganizationUser> InviteUserAsync(Guid organizationId, string email, IEnumerable<SubvaultUser> subvaults);
2017-03-05 03:28:41 +01:00
Task<OrganizationUser> AcceptUserAsync(Guid organizationUserId, User user, string token);
Task<OrganizationUser> ConfirmUserAsync(Guid organizationUserId, string key);
2017-03-12 04:42:27 +01:00
Task SaveUserAsync(OrganizationUser user, IEnumerable<SubvaultUser> subvaults);
}
}