private Messages.AliveMessage GetAliveMessage(List<string> lines) { var result = new Messages.AliveMessage(new Service()); string tmp = GetValue(lines, Headers.Location); if (tmp == null) tmp = GetValue(lines, Headers.Location2); if (tmp != null) result.Service.Location = tmp; result.Service.Expiry = GetExpiry(lines); return result; }
private Messages.AliveMessage GetAliveMessage(List <string> lines) { var result = new Messages.AliveMessage(new Service()); string tmp = GetValue(lines, Headers.Location); if (tmp == null) { tmp = GetValue(lines, Headers.Location2); } if (tmp != null) { result.Service.Location = tmp; } result.Service.Expiry = GetExpiry(lines); return(result); }