示例#1
0
 private global::System.Object? FormatRealmType(global::WotBlitzStatisticsPro.Blazor.GraphQl.RealmType value)
 {
     return(_realmTypeFormatter.Format(value));
 }
示例#2
0
        public global::System.IObservable <global::StrawberryShake.IOperationResult <IFindPlayersResult> > Watch(global::System.String accountNick, global::WotBlitzStatisticsPro.Blazor.GraphQl.RealmType realmType, global::WotBlitzStatisticsPro.Blazor.GraphQl.RequestLanguage language, global::StrawberryShake.ExecutionStrategy?strategy = null)
        {
            var request = CreateRequest(accountNick, realmType, language);

            return(_operationExecutor.Watch(request, strategy));
        }
示例#3
0
        private global::StrawberryShake.OperationRequest CreateRequest(global::System.String accountNick, global::WotBlitzStatisticsPro.Blazor.GraphQl.RealmType realmType, global::WotBlitzStatisticsPro.Blazor.GraphQl.RequestLanguage language)
        {
            var variables = new global::System.Collections.Generic.Dictionary <global::System.String, global::System.Object?>();

            variables.Add("accountNick", FormatAccountNick(accountNick));
            variables.Add("realmType", FormatRealmType(realmType));
            variables.Add("language", FormatLanguage(language));
            return(CreateRequest(variables));
        }
示例#4
0
        public async global::System.Threading.Tasks.Task <global::StrawberryShake.IOperationResult <IFindPlayersResult> > ExecuteAsync(global::System.String accountNick, global::WotBlitzStatisticsPro.Blazor.GraphQl.RealmType realmType, global::WotBlitzStatisticsPro.Blazor.GraphQl.RequestLanguage language, global::System.Threading.CancellationToken cancellationToken = default)
        {
            var request = CreateRequest(accountNick, realmType, language);

            return(await _operationExecutor.ExecuteAsync(request, cancellationToken).ConfigureAwait(false));
        }