using Refit; using System; using System.Collections.Generic; using System.Threading.Tasks; using Taloyhtio.IDP.SPApi.Model; using RegisterUserRequest = Taloyhtio.IDP.SPApi.Model.RegisterUserRequest; namespace webapi.Application.Services { public class GetIdsByCondoUrlRequest { public string TaloyhtioCondoUrl { get; set; } } public interface ISPHandlerService { //GET [Get("/get.ashx?m=GetEmailSettings")] Task> GetEmailSettings(); [Get("/get.ashx?m=GetUserCondoGroup")] Task> GetUserCondoGroup(Guid pmcId, string condoUrl); [Get("/get.ashx?m=GetApprovers")] Task> GetApprovers(Guid pmcId); [Get("/get.ashx?m=GetCondos")] Task, Tuple>>> GetCondos(Guid pmcId, string query = null); [Get("/get.ashx?m=GetPMCLang")] Task GetPMCLang(Guid pmcId); [Get("/get.ashx?m=GetTaylohtioPMCUrl")] Task GetTaylohtioPMCUrl(Guid pmcId); [Get("/get.ashx?m=GetTaylohtioPMCTitle")] Task GetTaylohtioPMCTitle(Guid pmcId); [Get("/get.ashx?m=GetPMCList")] Task>> GetPMCList(Guid pmcId, string query); [Get("/get.ashx?m=GetTaylohtioPMCCondoTitle")] Task GetTaylohtioPMCCondoTitle(Guid pmcId, Guid condoId); [Get("/get.ashx?m=GetNotificationsAndOrders")] Task> GetNotificationsAndOrders(string userName, string pmcId); [Get("/get.ashx?m=GetNotificationsAndOrdersUrl")] Task GetNotificationsAndOrdersUrl(string pmcId); //POST [Post("/post.ashx?m=GetIdsByCondoUrl")] Task> GetIdsByCondoUrl([Body] GetIdsByCondoUrlRequest request); [Post("/post.ashx?m=RegisterUser")] Task RegisterUser([Body]RegisterUserRequest request); [Post("/post.ashx?m=CreateFlatFolders")] Task CreateFlatFolders([Body] CreateFlatFoldersRequest request); [Post("/post.ashx?m=GetTaylohtioCondoNames")] Task>> GetTaylohtioCondoNames(GetTaylohtioCondoNamesRequest request); [Post("/post.ashx?m=ResolveFolderPath")] Task ResolveFolderPath(ResolveFolderPathRequest request); [Post("/post.ashx?m=GetFlatDocsFoldersList")] Task> GetFlatDocsFoldersList(GetFoldersRequest request); [Post("/post.ashx?m=GetMaterialRepairHistoryList")] Task> GetMaterialRepairHistoryList(GetFoldersRequest request); [Post("/post.ashx?m=UserToFlatFoldersAssignment")] Task UserToFlatFoldersAssignment([Body] UserToFlatFoldersAssignmentRequest request); [Post("/post.ashx?m=DeleteUsersFromFlatGroup")] Task DeleteUsersFromFlatGroup([Body] DeleteUsersFromFlatGroupRequest request); } }