示例#1
0
        public async Task UpdateStreams()
        {
            var newestSavedStream = await _repository.GetNewest(_streamerName);

            var currentTwitchStreams = await _twitch.GetStreams(_streamerName);

            var currentTwitchStream = currentTwitchStreams?.Data?.FirstOrDefault();

            if (newestSavedStream is { } && currentTwitchStream is { })