Example #1
0
 /// <summary>
 /// Deletes the raw data object identified by the key <paramref name="rawDataKey"/> for the measurement with uuid <paramref name="measurementUuid"/>.
 /// </summary>
 /// <param name="client">The client class to use.</param>
 /// <param name="measurementUuid">The uuid of the part the raw data objects belongs to. </param>
 /// <param name="rawDataKey">The key of the raw data object which should be deleted.</param>
 /// <param name="cancellationToken">A token to cancel the asynchronous operation.</param>
 public static Task DeleteRawDataForMeasurement(this IRawDataServiceRestClient client, Guid measurementUuid, int?rawDataKey = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(client.DeleteRawData(RawDataTargetEntity.CreateForMeasurement(measurementUuid), rawDataKey, cancellationToken));
 }
Example #2
0
 /// <summary>
 /// Fetches raw data for the measurement with <paramref name="measurementUuid"/> and raw data index <paramref name="rawDataKey"/>.
 /// </summary>
 /// <param name="client">The client class to use for fetching the raw data.</param>
 /// <param name="measurementUuid">The uuid of the measurement to fetch the raw data object for.</param>
 /// <param name="rawDataKey">The unique key that identifies the raw data object for the specified measurement.</param>
 /// <param name="cancellationToken">A token to cancel the asynchronous operation.</param>
 public static Task <byte[]> GetRawDataForMeasurement(this IRawDataServiceRestClient client, Guid measurementUuid, int rawDataKey, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(client.GetRawData(RawDataTargetEntity.CreateForMeasurement(measurementUuid), rawDataKey, cancellationToken: cancellationToken));
 }