Exemple #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));
 }
Exemple #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));
        }
Exemple #3
0
        public static NCDCResponse <NCDCDatasetCollection> GetDataSets(string token = null, NCDCOptions options = null)
        {
            token = token ?? NCDCUtilities.GetUnlockedToken();
            var command = new ListDatasetsCommand(token, options);

            return(NCDCCommand <NCDCDatasetCollection> .PerformAction(command));
        }
Exemple #4
0
 public static NCDCResponse <NCDCDataType> GetDataTypeInformationForLocation(string datasetName, string locationId, string dataTypeId, string token = null, NCDCOptions options = null)
 {
     token = token ?? NCDCUtilities.GetUnlockedToken(); var command = new ShowDataTypesCommand(token, options);
     command.BuildDatasetsLocationsUri(datasetName, locationId, dataTypeId);
     return(NCDCCommand <NCDCDataType> .PerformAction(command));
 }
Exemple #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));
 }
Exemple #6
0
 public static NCDCResponse <NCDCLocationTypeCollection> GetLocationTypes(string datasetName, string token = null, NCDCOptions options = null)
 {
     token = token ?? NCDCUtilities.GetUnlockedToken(); var command = new ListLocationTypesCommand(datasetName, token, options);
     return(NCDCCommand <NCDCLocationTypeCollection> .PerformAction(command));
 }