Beispiel #1
0
        public async Task <RoomInfo> FetchRoomInfoAsync()
        {
            RoomInfo roomInfo = await BililiveAPI.GetRoomInfoAsync(Roomid);

            RoomInfoUpdated?.Invoke(this, new RoomInfoUpdatedArgs {
                RoomInfo = roomInfo
            });
            return(roomInfo);
        }
Beispiel #2
0
        public async Task <RoomInfo> FetchRoomInfoAsync()
        {
            RoomInfo roomInfo = await bililiveAPI.GetRoomInfoAsync(Roomid).ConfigureAwait(false);

            if (roomInfo != null)
            {
                RoomInfoUpdated?.Invoke(this, new RoomInfoUpdatedArgs {
                    RoomInfo = roomInfo
                });
            }
            return(roomInfo);
        }