static void Main(string[] args) { _api = Common.ZendeskApiManager.ZendeskApi; _xml = new PrtgXmlOutput(); if (args == null || args.Length == 0) { Common.Tools.PringAgentHelp(_api); return; } agentIdList = new List<long>(); foreach (var s in args) { long agentId; if (long.TryParse(args[0], out agentId)) { agentIdList.Add(agentId); } else { Tools.PrintError(); break; } } }
static void Main(string[] args) { _api = Common.ZendeskApiManager.ZendeskApi; _xml = new PrtgXmlOutput(); if (args == null || args.Length == 0) { Common.Tools.PrintGroupHelp(_api); return; } long groupId; if (long.TryParse(args[0], out groupId)) { GetResult(groupId); } else { Tools.PrintError(); } }
static void Main(string[] args) { _api = Common.ZendeskApiManager.ZendeskApi; _xml = new PrtgXmlOutput(); var today = DateTime.Today; _dayStartDateTimeOffset = (DateTimeOffset)today; if (args == null || args.Length == 0) { Common.Tools.PrintGroupHelp(_api); return; } long groupId; if (long.TryParse(args[0], out groupId)) { GetResult(groupId); } else { GetResult(args[0].ToString()); } }