73 lines
2.7 KiB
C#
73 lines
2.7 KiB
C#
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<IDictionary<string, string>> GetEmailSettings();
|
|
|
|
[Get("/get.ashx?m=GetUserCondoGroup")]
|
|
Task<KeyValuePair<int, string>> GetUserCondoGroup(Guid pmcId, string condoUrl);
|
|
|
|
[Get("/get.ashx?m=GetApprovers")]
|
|
Task<IEnumerable<string>> GetApprovers(Guid pmcId);
|
|
|
|
[Get("/get.ashx?m=GetCondos")]
|
|
Task<IEnumerable<KeyValuePair<Tuple<Guid, Guid>, Tuple<string, string>>>> GetCondos(Guid pmcId, string query = null);
|
|
|
|
[Get("/get.ashx?m=GetPMCLang")]
|
|
Task<string> GetPMCLang(Guid pmcId);
|
|
|
|
[Get("/get.ashx?m=GetTaylohtioPMCUrl")]
|
|
Task<string> GetTaylohtioPMCUrl(Guid pmcId);
|
|
|
|
[Get("/get.ashx?m=GetTaylohtioPMCTitle")]
|
|
Task<string> GetTaylohtioPMCTitle(Guid pmcId);
|
|
|
|
[Get("/get.ashx?m=GetPMCList")]
|
|
Task<IEnumerable<KeyValuePair<Guid, string>>> GetPMCList(Guid pmcId, string query);
|
|
|
|
[Get("/get.ashx?m=GetTaylohtioPMCCondoTitle")]
|
|
Task<string> GetTaylohtioPMCCondoTitle(Guid pmcId, Guid condoId);
|
|
|
|
[Get("/get.ashx?m=GetNotificationsAndOrders")]
|
|
Task<IEnumerable<NotificationsAndOrders>> GetNotificationsAndOrders(string userName, string pmcId);
|
|
|
|
[Get("/get.ashx?m=GetNotificationsAndOrdersUrl")]
|
|
Task<string> GetNotificationsAndOrdersUrl(string pmcId);
|
|
|
|
//POST
|
|
[Post("/post.ashx?m=GetIdsByCondoUrl")]
|
|
Task<IDictionary<string, Guid>> GetIdsByCondoUrl([Body] GetIdsByCondoUrlRequest request);
|
|
|
|
[Post("/post.ashx?m=RegisterUser")]
|
|
Task<RegisterUserResponse> RegisterUser([Body]RegisterUserRequest request);
|
|
|
|
[Post("/post.ashx?m=CreateFlatFolders")]
|
|
Task CreateFlatFolders(CreateFlatFoldersRequest request);
|
|
|
|
[Post("/post.ashx?m=GetTaylohtioCondoNames")]
|
|
Task<IEnumerable<Tuple<Guid, string>>> GetTaylohtioCondoNames(GetTaylohtioCondoNamesRequest request);
|
|
|
|
[Post("/post.ashx?m=ResolveFolderPath")]
|
|
Task<ResolveFolderPathResponse> ResolveFolderPath(ResolveFolderPathRequest request);
|
|
|
|
[Post("/post.ashx?m=GetFlatDocsFoldersList")]
|
|
Task<IEnumerable<FlatDocsFolder>> GetFlatDocsFoldersList(GetFoldersRequest request);
|
|
|
|
[Post("/post.ashx?m=GetMaterialRepairHistoryList")]
|
|
Task<IEnumerable<MaterialRepairHistory>> GetMaterialRepairHistoryList(GetFoldersRequest request);
|
|
}
|
|
}
|