Beispiel #1
0
 /// <summary>
 /// Deletes the raw data object identified by the key <paramref name="rawDataKey"/> for the characteristic with uuid <paramref name="characteristicUuid"/>.
 /// </summary>
 /// <param name="client">The client class to use.</param>
 /// <param name="characteristicUuid">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 DeleteRawDataForCharacteristic(this IRawDataServiceRestClient client, Guid characteristicUuid, int?rawDataKey = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(client.DeleteRawData(RawDataTargetEntity.CreateForCharacteristic(characteristicUuid), rawDataKey, cancellationToken));
 }
Beispiel #2
0
 /// <summary>
 /// Fetches raw data for the characteristic with <paramref name="characteristicUuid"/> and raw data index <paramref name="rawDataKey"/>.
 /// </summary>
 /// <param name="client">The client class to use.</param>
 /// <param name="characteristicUuid">The uuid of the characteristic to fetch the raw data object for.</param>
 /// <param name="rawDataKey">The unique key that identifies the raw data object for the specified characteristic.</param>
 /// <param name="cancellationToken">A token to cancel the asynchronous operation.</param>
 public static Task <byte[]> GetRawDataForCharacteristic(this IRawDataServiceRestClient client, Guid characteristicUuid, int rawDataKey, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(client.GetRawData(RawDataTargetEntity.CreateForCharacteristic(characteristicUuid), rawDataKey, cancellationToken: cancellationToken));
 }