public GetServiceDefinition(HealthVaultClient client, DateTime lastUpdated, ServiceDefinitionResponseSections[] responseSections) : base(client) { if (responseSections == null) { throw new ArgumentNullException("responseSections"); } m_data = new object[] { new LastUpdatedDate(lastUpdated), new ResponseConfig(responseSections) }; }
public GetServiceDefinition(CHBaseClient client, ServiceDefinitionResponseSections[] responseSections) : base(client) { if (responseSections == null) { throw new ArgumentNullException("responseSections"); } m_data = new object[] { new ResponseConfig(responseSections) }; }
public ResponseConfig(ServiceDefinitionResponseSections[] responseSections) { ResponseSections = new string[responseSections.Length]; for (var i = 0; i < responseSections.Length; i++) { if (responseSections[i] == ServiceDefinitionResponseSections.XmlOverHttpMethods) { ResponseSections[i] = "xml-over-http-methods"; } else { ResponseSections[i] = responseSections[i].ToString().ToLowerInvariant(); } } }