92 lines
4.3 KiB
C#
92 lines
4.3 KiB
C#
using SVSim.Database.Repositories.Guild;
|
|
using SVSim.Database.Services;
|
|
|
|
namespace SVSim.Database.Services.Guild;
|
|
|
|
public sealed class GuildService : IGuildService
|
|
{
|
|
private readonly IGuildRepository _guilds;
|
|
private readonly IGuildMemberRepository _members;
|
|
private readonly IGuildInviteRepository _invites;
|
|
private readonly IGuildJoinRequestRepository _joinRequests;
|
|
private readonly IGuildChatMessageRepository _chatMessages;
|
|
private readonly IGameConfigService _config;
|
|
|
|
public GuildService(
|
|
IGuildRepository guilds,
|
|
IGuildMemberRepository members,
|
|
IGuildInviteRepository invites,
|
|
IGuildJoinRequestRepository joinRequests,
|
|
IGuildChatMessageRepository chatMessages,
|
|
IGameConfigService config)
|
|
{
|
|
_guilds = guilds;
|
|
_members = members;
|
|
_invites = invites;
|
|
_joinRequests = joinRequests;
|
|
_chatMessages = chatMessages;
|
|
_config = config;
|
|
}
|
|
|
|
// Returns null so /guild/info can short-circuit to a non-joined response in Phase 1.
|
|
public Task<GuildFullView?> GetMyGuildAsync(long viewerId, CancellationToken ct = default)
|
|
=> Task.FromResult<GuildFullView?>(null);
|
|
|
|
public Task<Entities.Guild.Guild?> GetActiveAsync(int guildId, CancellationToken ct = default)
|
|
=> throw new NotImplementedException();
|
|
|
|
public Task<IReadOnlyList<GuildSearchEntry>> SearchAsync(string name, int activity, int joinCondition, int memberBucket, CancellationToken ct = default)
|
|
=> throw new NotImplementedException();
|
|
|
|
public Task<GuildOpResult> CreateAsync(long viewerId, CreateGuildRequest req, CancellationToken ct = default)
|
|
=> throw new NotImplementedException();
|
|
|
|
public Task<GuildOpResult> UpdateAsync(long viewerId, UpdateGuildRequest req, CancellationToken ct = default)
|
|
=> throw new NotImplementedException();
|
|
|
|
public Task<GuildOpResult> UpdateDescriptionAsync(long viewerId, string description, CancellationToken ct = default)
|
|
=> throw new NotImplementedException();
|
|
|
|
public Task<GuildOpResult> UpdateEmblemAsync(long viewerId, long emblemId, CancellationToken ct = default)
|
|
=> throw new NotImplementedException();
|
|
|
|
public Task<GuildOpResult> BreakupAsync(long viewerId, CancellationToken ct = default)
|
|
=> throw new NotImplementedException();
|
|
|
|
public Task<GuildOpResult> InviteAsync(long callerViewerId, long targetViewerId, CancellationToken ct = default)
|
|
=> throw new NotImplementedException();
|
|
|
|
public Task<GuildOpResult> CancelInviteAsync(long callerViewerId, long targetViewerId, CancellationToken ct = default)
|
|
=> throw new NotImplementedException();
|
|
|
|
public Task<GuildOpResult> RejectInviteAsync(long callerViewerId, int guildId, CancellationToken ct = default)
|
|
=> throw new NotImplementedException();
|
|
|
|
public Task<GuildOpResult> JoinAsync(long viewerId, int guildId, CancellationToken ct = default)
|
|
=> throw new NotImplementedException();
|
|
|
|
public Task<GuildOpResult> CancelJoinRequestAsync(long viewerId, int guildId, CancellationToken ct = default)
|
|
=> throw new NotImplementedException();
|
|
|
|
public Task<GuildOpResult> AcceptJoinRequestAsync(long callerViewerId, long applicantViewerId, CancellationToken ct = default)
|
|
=> throw new NotImplementedException();
|
|
|
|
public Task<GuildOpResult> RejectJoinRequestAsync(long callerViewerId, long applicantViewerId, CancellationToken ct = default)
|
|
=> throw new NotImplementedException();
|
|
|
|
public Task<GuildOpResult> LeaveAsync(long viewerId, CancellationToken ct = default)
|
|
=> throw new NotImplementedException();
|
|
|
|
public Task<GuildOpResult> RemoveAsync(long callerViewerId, long targetViewerId, CancellationToken ct = default)
|
|
=> throw new NotImplementedException();
|
|
|
|
public Task<GuildOpResult> ChangeRoleAsync(long callerViewerId, long targetViewerId, int newRoleId, CancellationToken ct = default)
|
|
=> throw new NotImplementedException();
|
|
|
|
public Task<IReadOnlyList<Entities.Guild.GuildInvite>> ListPendingInvitesForMeAsync(long viewerId, CancellationToken ct = default)
|
|
=> throw new NotImplementedException();
|
|
|
|
public Task<IReadOnlyList<Entities.Guild.GuildJoinRequest>> ListPendingJoinRequestsForMyGuildAsync(long viewerId, CancellationToken ct = default)
|
|
=> throw new NotImplementedException();
|
|
}
|