/// <summary> /// Saves the recording of the provided Ding Id of a doorbot to the provided location /// </summary> /// <param name="doorbotHistoryEvent">The doorbot history event to retrieve the recording for</param> public async Task GetDoorbotHistoryRecording(Entities.DoorbotHistoryEvent doorbotHistoryEvent, string saveAs) { await GetDoorbotHistoryRecordingAndCreateFile(doorbotHistoryEvent.Id, saveAs); }
/// <summary> /// Returns a stream with the recording of the provided Ding Id of a doorbot /// </summary> /// <param name="doorbotHistoryEvent">The doorbot history event to retrieve the recording for</param> /// <returns>Stream containing contents of the recording</returns> public async Task <Stream> GetDoorbotHistoryRecording(Entities.DoorbotHistoryEvent doorbotHistoryEvent) { return(await GetDoorbotHistoryRecording(doorbotHistoryEvent.Id)); }