mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-21 18:37:18 +02:00
feat: Logun url query implementation
This commit is contained in:
1 parent
806268df48
commit
11486b7303
6 files changed
+67
-3
No files matched your search
@@ -0,0 +1,28 @@
|
||||
using HotChocolate.Types;
|
||||
using System.Threading.Tasks;
|
||||
using WotBlitzStatisticsPro.Common.Model;
|
||||
using WotBlitzStatisticsPro.WgApiClient;
|
||||
|
||||
namespace WotBlitzStatisticsPro.GraphQl.Query
|
||||
{
|
||||
[ExtendObjectType(Name = "Query")]
|
||||
public class WargamingAuthQuery
|
||||
{
|
||||
private readonly IWargamingAuthenticationClient _wargamingAuthenticationClient;
|
||||
|
||||
public WargamingAuthQuery(IWargamingAuthenticationClient wargamingAuthenticationClient)
|
||||
{
|
||||
_wargamingAuthenticationClient = wargamingAuthenticationClient;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns authentication URL accourding Realm
|
||||
/// </summary>
|
||||
/// <param name="realmType">Wargaming Realm.</param>
|
||||
/// <returns></returns>
|
||||
public string LoginUrl(RealmType realmType)
|
||||
{
|
||||
return _wargamingAuthenticationClient.LoginUrl(realmType);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user