mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
41 lines
2.5 KiB
C#
41 lines
2.5 KiB
C#
using System.Net;
|
|
|
|
namespace CartriX.Shared.Classes
|
|
{
|
|
public class ApiRoutes
|
|
{
|
|
static public class Report
|
|
{
|
|
public static string ListCausesForReplace => $"api/{nameof(Report)}/{nameof(ListCausesForReplace)}";
|
|
public static string CreateRequestForReplace => $"api/{nameof(Report)}/{nameof(CreateRequestForReplace)}";
|
|
public static string GetRecordPrintAtSeletedDays(int Days) => $"api/{nameof(Report)}/{nameof(GetRecordPrintAtSeletedDays)}?{nameof(Days)}={Days}";
|
|
}
|
|
public static class Network
|
|
{
|
|
public static string Available => $"api/{nameof(Network)}/{nameof(Available)}";
|
|
public static string BaseAddress => $"api/{nameof(Network)}/{nameof(BaseAddress)}";
|
|
public static string GetSNMPData(string IpAddressOrHostname, string OID) => $"api/{nameof(Network)}/{nameof(GetSNMPData)}?{nameof(IpAddressOrHostname)}={IpAddressOrHostname}&{nameof(OID)}={OID}";
|
|
public static string Ping(string IpAddressOrHostname) => $"api/{nameof(Network)}/{nameof(Ping)}?{nameof(IpAddressOrHostname)}={IpAddressOrHostname}";
|
|
}
|
|
public static class Cartridge
|
|
{
|
|
public static string GetForPrinter(int PrinterId) => $"api/{nameof(Cartridge)}/{nameof(GetForPrinter)}?{nameof(PrinterId)}={PrinterId}";
|
|
public static string Item(int Id) => $"api/{nameof(Cartridge)}/{nameof(Item)}?{nameof(Id)}={Id}";
|
|
public static string GetArticlesList => $"api/{nameof(Cartridge)}/{nameof(GetArticlesList)}";
|
|
public static string AddCartridge => $"api/{nameof(Cartridge)}/{nameof(AddCartridge)}";
|
|
public static string List => $"api/{nameof(Cartridge)}/{nameof(List)}";
|
|
}
|
|
public static class Printer
|
|
{
|
|
public static string Item(int Id) => $"api/{nameof(Printer)}/{nameof(Item)}?{nameof(Id)}={Id}";
|
|
public static string AddPrinter => $"api/{nameof(Printer)}/{nameof(AddPrinter)}";
|
|
public static string ListConnectionType => $"api/{nameof(Printer)}/{nameof(ListConnectionType)}";
|
|
public static string ListPrintType => $"api/{nameof(Printer)}/{nameof(ListPrintType)}";
|
|
}
|
|
public static class Location
|
|
{
|
|
public static string List => $"api/{nameof(Location)}/{nameof(List)}";
|
|
public static string ListPrinters(int LocationId) => $"api/{nameof(Location)}/{nameof(ListPrinters)}?{nameof(LocationId)}={LocationId}";
|
|
}
|
|
}
|
|
} |