Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ListLocationTypesCommand"/> class.
 /// </summary>
 /// <param name="datasetName">Name of the dataset.</param>
 /// <param name="token">The token.</param>
 /// <param name="options">The options.</param>
 /// <remarks></remarks>
 public ListLocationTypesCommand(string datasetName, string token, Options.NCDCOptions options)
     : base(
         HTTPVerb.GET,
         string.Format("datasets/{0}/locationtypes.json", datasetName),
         token, options)
 {
     this.DeserializationHandler = NCDCLocationTypeCollection.Deserialize;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShowDatasetCommand"/> class.
 /// </summary>
 /// <param name="datasetName">Name of the dataset.</param>
 /// <param name="token">The token.</param>
 /// <param name="options">The options.</param>
 /// <remarks></remarks>
 public ShowDatasetCommand(string datasetName, string token, Options.NCDCOptions options)
     : base(
         HTTPVerb.GET,
         string.Format("datasets/{0}.json", datasetName),
         token,
         options)
 {
     this.DeserializationHandler = NCDCDataset.Deserialize;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShowStationCommand"/> class.
 /// </summary>
 /// <param name="datasetName">Name of the dataset.</param>
 /// <param name="stationId">The station id.</param>
 /// <param name="token">The token.</param>
 /// <param name="options">The options.</param>
 /// <remarks></remarks>
 public ShowStationCommand(string datasetName, string stationId, string token, Options.NCDCOptions options)
     : base(
         HTTPVerb.GET,
         string.Format("datasets/{0}/stations/{1}.json", datasetName, stationId),
         token, options)
 {
     this.DeserializationHandler = NCDCStation.Deserialize;
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShowLocationCommand"/> class.
 /// </summary>
 /// <param name="datasetName">Name of the dataset.</param>
 /// <param name="locationTypeName">Name of the location type.</param>
 /// <param name="locationId">The location id.</param>
 /// <param name="token">The token.</param>
 /// <param name="options">The options.</param>
 /// <remarks></remarks>
 public ShowLocationCommand(string datasetName, string locationTypeName, string locationId, string token, Options.NCDCOptions options)
     : base(
         HTTPVerb.GET,
         string.Format("datasets/{0}/locationtypes/{1}/locations/{2}.json", datasetName, locationTypeName, locationId),
         token, options)
 {
     this.DeserializationHandler = NCDCLocation.Deserialize;
 }