/// <summary> /// Constructor. /// </summary> /// <param name="entity">The entity this object belongs to.</param> /// <param name="key">A unique key that identifies this information object.</param> public RawDataInformation(RawDataTargetEntity entity, int key) { Target = entity; Key = key; KeySpecified = (key > -1); }
/// <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)); }
/// <summary> /// Constructor. /// </summary> public RawDataInformation() { Target = new RawDataTargetEntity(); }