//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace Bajun.Network.NET.RestClient.Mockup.Generated.Clients
{
   using System;
   using System.Threading.Tasks;
   using System.Net.Http;
   using Bajun.Network.NET.NetApiExt.Generated.Model.sp_core.bounded.bounded_vec;
   using Bajun.Network.NET.NetApiExt.Generated.Model.bajun_runtime;
   using Bajun.Network.NET.NetApiExt.Generated.Model.pallet_collective;
   using Ajuna.NetApi.Model.Types.Primitive;
   using Ajuna.NetApi.Model.Types.Base;
   using Bajun.Network.NET.NetApiExt.Generated.Model.sp_core.crypto;
   using Bajun.Network.NET.RestClient.Mockup.Generated.Interfaces;
   
   public sealed class CouncilControllerMockupClient : MockupBaseClient, ICouncilControllerMockupClient
   {
      private HttpClient _httpClient;
      public CouncilControllerMockupClient(HttpClient httpClient)
      {
         _httpClient = httpClient;
      }
      public async Task<bool> SetProposals(BoundedVecT28 value)
      {
         return await SendMockupRequestAsync(_httpClient, "Council/Proposals", value.Encode(), Bajun.Network.NET.NetApiExt.Generated.Storage.CouncilStorage.ProposalsParams());
      }
      public async Task<bool> SetProposalOf(EnumRuntimeCall value, Bajun.Network.NET.NetApiExt.Generated.Model.primitive_types.H256 key)
      {
         return await SendMockupRequestAsync(_httpClient, "Council/ProposalOf", value.Encode(), Bajun.Network.NET.NetApiExt.Generated.Storage.CouncilStorage.ProposalOfParams(key));
      }
      public async Task<bool> SetVoting(Votes value, Bajun.Network.NET.NetApiExt.Generated.Model.primitive_types.H256 key)
      {
         return await SendMockupRequestAsync(_httpClient, "Council/Voting", value.Encode(), Bajun.Network.NET.NetApiExt.Generated.Storage.CouncilStorage.VotingParams(key));
      }
      public async Task<bool> SetProposalCount(U32 value)
      {
         return await SendMockupRequestAsync(_httpClient, "Council/ProposalCount", value.Encode(), Bajun.Network.NET.NetApiExt.Generated.Storage.CouncilStorage.ProposalCountParams());
      }
      public async Task<bool> SetMembers(BaseVec<AccountId32> value)
      {
         return await SendMockupRequestAsync(_httpClient, "Council/Members", value.Encode(), Bajun.Network.NET.NetApiExt.Generated.Storage.CouncilStorage.MembersParams());
      }
      public async Task<bool> SetPrime(AccountId32 value)
      {
         return await SendMockupRequestAsync(_httpClient, "Council/Prime", value.Encode(), Bajun.Network.NET.NetApiExt.Generated.Storage.CouncilStorage.PrimeParams());
      }
   }
}
