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 string GetIpAddressFromHostname(string Hostname) => $"api/{nameof(Network)}/{nameof(GetIpAddressFromHostname)}?{nameof(Hostname)}={Hostname}"; } 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 GetFamilyModelList => $"api/{nameof(Cartridge)}/{nameof(GetFamilyModelList)}"; public static string AddCartridge => $"api/{nameof(Cartridge)}/{nameof(AddCartridge)}"; public static string List => $"api/{nameof(Cartridge)}/{nameof(List)}"; public static string GetModelsList => $"api/{nameof(Cartridge)}/{nameof(GetModelsList)}"; } 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 string GetAddressOIDs => $"api/{nameof(Printer)}/{nameof(GetAddressOIDs)}"; } 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}"; } public static class Manufacturer { public static string List => $"api/{nameof(Manufacturer)}/{nameof(List)}"; } } }