Skip to content

Commit

Permalink
Merge pull request #122 from open200/118-allow-accessbeginat-to-be-nu…
Browse files Browse the repository at this point in the history
…llable-in-setaccessbeginatasync

allow accessBeginAt to be nullable in setAccessBeginAtAsync
  • Loading branch information
berka3 authored Dec 2, 2024
2 parents 3fdc1f3 + 2944ea7 commit f85ada6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,13 @@ suspend fun XesarConnect.removeZoneAuthorizationFromMediumAsync(
* Sets the access begin of an identification medium asynchronously.
*
* @param mediumId The ID of the medium to set the access begin.
* @param accessBeginAt The access begin to set.
* @param accessBeginAt The access begin to set (optional). If the parameter is null, the access
* begin is automatically set to the current LocalDateTime minus 2 hours by Xesar.
* @param requestConfig The request configuration (optional).
*/
suspend fun XesarConnect.setAccessBeginAtAsync(
mediumId: UUID,
accessBeginAt: LocalDateTime,
accessBeginAt: LocalDateTime?,
requestConfig: XesarConnect.RequestConfig = buildRequestConfig()
): SingleEventResult<MediumChanged> {
return sendCommandAsync<SetAccessBeginAtMapi, MediumChanged>(
Expand Down

0 comments on commit f85ada6

Please sign in to comment.