Example #1
0
 public static NCDCResponse<NCDCDataCollection> GetDataForLocationTypeLocationAndDataType(string datasetName,
     string locationTypeId, string locationId, string dataTypeId, string token = null, NCDCOptions options = null)
 {
     token = token ?? NCDCUtilities.GetUnlockedToken(); var command = new ListDataCommand(token, options);
     command.BuildDatasetLocationTypeLocationDataTypeUri(datasetName, locationTypeId, locationId, dataTypeId);
     return NCDCCommand<NCDCDataCollection>.PerformAction(command);
 }
Example #2
0
 public static NCDCResponse<NCDCLocation> GetLocationInformation(string datasetName, string locationId, string token = null, NCDCOptions options = null)
 {
     token = token ?? NCDCUtilities.GetUnlockedToken();
     var command = new ShowLocationCommand(datasetName, locationId, token, options);
     return NCDCCommand<NCDCLocation>.PerformAction(command);
 }
Example #3
0
 public static NCDCResponse<NCDCStationCollection> GetStations(string datasetName, string token = null, NCDCOptions options = null)
 {
     token = token ?? NCDCUtilities.GetUnlockedToken(); var command = new ListStationsCommand(datasetName, token, options);
     return NCDCCommand<NCDCStationCollection>.PerformAction(command);
 }
Example #4
0
 public static NCDCResponse<NCDCDataType> GetDataTypeInformationForLocationType(string datasetName, string locationTypeName, string dataTypeId, string token = null, NCDCOptions options = null)
 {
     token = token ?? NCDCUtilities.GetUnlockedToken(); var command = new ShowDataTypesCommand(token, options);
     command.BuildDatasetsLocationTypesUri(datasetName, locationTypeName, dataTypeId);
     return NCDCCommand<NCDCDataType>.PerformAction(command);
 }
Example #5
0
 public static NCDCResponse<NCDCDataTypeCollection> GetDataTypesForStation(string datasetName, string stationId, string token = null, NCDCOptions options = null)
 {
     token = token ?? NCDCUtilities.GetUnlockedToken(); var command = new ListDataTypesCommand(token, options);
     command.BuildDatasetsStationsUri(datasetName, stationId);
     return NCDCCommand<NCDCDataTypeCollection>.PerformAction(command);
 }