Skip to content

Instantly share code, notes, and snippets.

@andySF
Created August 1, 2012 11:40
Show Gist options
  • Save andySF/3226066 to your computer and use it in GitHub Desktop.
Save andySF/3226066 to your computer and use it in GitHub Desktop.
using System;
namespace IONService.Config
{
class Variables
{
//app
static public string IONServiceServiceName = "IONService";
static public string IONUpdaterServiceName = "IONUpdater";
static public int machine_id = -1;
static public string HardwareID = String.Empty;
static public string ServerSuccessResponse = "<result>success</result>";
static public string ServiceInstallCommand = " -install";
static public string ServiceUninstallCommand = " -uninstall";
//Server
static public string ServerHost = "promagic.hopto.org";
static public string ServerURI = "http://promagic.hopto.org";
static public string ServerPort = ":4321";
static public string ServerBaseURI = ServerURI + ServerPort;
//Machines
static public string CreateMachineURI = "/machines/create";
static public string ListMachinesURI = "/machines/list";
static public string findMachinesByHardwareID = "/machines/findHardwareID";
//=========On server:
static public string ServerCreateMachineURI = ServerBaseURI + CreateMachineURI;
static public string ServerFindByUniqueIdURI = ServerBaseURI + findMachinesByHardwareID;
static public string ServerListMachinesURI = ServerBaseURI + ListMachinesURI;
//Details
static public string CreateDetailURI = "/details/create";
static public string findCurrentDetailForMachine = "/details/findDetailForMachine";
//=========On server:
static public string ServerCreateDetailURI = ServerBaseURI + CreateDetailURI;
static public string ServerfindCurrentDetailForMachine = ServerBaseURI + findCurrentDetailForMachine;
//Updater updates
static public string IONUpdaterSystemPath = Environment.GetEnvironmentVariable("SystemRoot") + @"\IONUpdater.exe";
static public string IONUpdaterUpdateURI = "/Updaterupdates/getUpdate";
static public string ServerIONUpdaterUpdateURI = ServerBaseURI + IONUpdaterUpdateURI;
//log
static public string CreateLogURI = "/logs/create";
static public string ServerCreateLogURI = ServerBaseURI + CreateLogURI;
//Client Updates
static public string IONServiceSystemPath = Environment.GetEnvironmentVariable("SystemRoot") + @"\IONService.exe";
static public string IONServiceUpdateURI = "/Clientupdates/getUpdate";
static public string ServerIONServiceUpdateURI = ServerBaseURI + IONServiceUpdateURI;
//Commands
public static string GetCommandURI = ServerBaseURI + "/commands/getCommand";
public static string UpdateCommandURI = ServerBaseURI + "/commands/updateCommand";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment