// This file is automatically generated by ABP framework to use MVC Controllers from CSharp using System; using System.Collections.Generic; using System.Threading.Tasks; using Volo.Abp.Application.Dtos; using Volo.Abp.Http.Client; using Volo.Abp.Http.Modeling; using Volo.Abp.DependencyInjection; using Volo.Abp.Http.Client.ClientProxying; using Volo.Blogging.Posts; // ReSharper disable once CheckNamespace namespace Volo.Blogging.ClientProxies; [Dependency(ReplaceServices = true)] [ExposeServices(typeof(IPostAppService), typeof(PostsClientProxy))] public partial class PostsClientProxy : ClientProxyBase, IPostAppService { public virtual async Task> GetListByBlogIdAndTagNameAsync(Guid blogId, string tagName) { return await RequestAsync>(nameof(GetListByBlogIdAndTagNameAsync), new ClientProxyRequestTypeValue { { typeof(Guid), blogId }, { typeof(string), tagName } }); } public virtual async Task> GetTimeOrderedListAsync(Guid blogId) { return await RequestAsync>(nameof(GetTimeOrderedListAsync), new ClientProxyRequestTypeValue { { typeof(Guid), blogId } }); } public virtual async Task GetForReadingAsync(GetPostInput input) { return await RequestAsync(nameof(GetForReadingAsync), new ClientProxyRequestTypeValue { { typeof(GetPostInput), input } }); } public virtual async Task GetAsync(Guid id) { return await RequestAsync(nameof(GetAsync), new ClientProxyRequestTypeValue { { typeof(Guid), id } }); } public virtual async Task CreateAsync(CreatePostDto input) { return await RequestAsync(nameof(CreateAsync), new ClientProxyRequestTypeValue { { typeof(CreatePostDto), input } }); } public virtual async Task UpdateAsync(Guid id, UpdatePostDto input) { return await RequestAsync(nameof(UpdateAsync), new ClientProxyRequestTypeValue { { typeof(Guid), id }, { typeof(UpdatePostDto), input } }); } public virtual async Task> GetListByUserIdAsync(Guid userId) { return await RequestAsync>(nameof(GetListByUserIdAsync), new ClientProxyRequestTypeValue { { typeof(Guid), userId } }); } public Task> GetLatestBlogPostsAsync(Guid blogId, int count) { return RequestAsync>(nameof(GetLatestBlogPostsAsync), new ClientProxyRequestTypeValue { { typeof(Guid), blogId }, { typeof(int), count } }); } public virtual async Task DeleteAsync(Guid id) { await RequestAsync(nameof(DeleteAsync), new ClientProxyRequestTypeValue { { typeof(Guid), id } }); } }