2017-03-02 00:15:05 -05:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Threading.Tasks;
|
2017-03-08 21:45:08 -05:00
|
|
|
|
using Bit.Core.Models.Table;
|
2017-03-04 21:28:41 -05:00
|
|
|
|
using Bit.Core.Models.Data;
|
2017-03-02 00:15:05 -05:00
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Repositories
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IOrganizationUserRepository : IRepository<OrganizationUser, Guid>
|
|
|
|
|
|
{
|
2017-03-03 00:07:11 -05:00
|
|
|
|
Task<OrganizationUser> GetByOrganizationAsync(Guid organizationId, Guid userId);
|
2017-03-11 22:42:27 -05:00
|
|
|
|
Task<Tuple<OrganizationUserUserDetails, ICollection<SubvaultUserDetails>>> GetDetailsByIdAsync(Guid id);
|
2017-03-06 20:51:13 -05:00
|
|
|
|
Task<ICollection<OrganizationUserUserDetails>> GetManyDetailsByOrganizationAsync(Guid organizationId);
|
|
|
|
|
|
Task<ICollection<OrganizationUserOrganizationDetails>> GetManyDetailsByUserAsync(Guid userId);
|
2017-03-02 00:15:05 -05:00
|
|
|
|
}
|
|
|
|
|
|
}
|