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

            RoomInfoUpdated?.Invoke(this, new RoomInfoUpdatedArgs {
                RoomInfo = roomInfo
            });
            return(roomInfo);
        }
Esempio n. 2
0
        public async Task <Room> FetchRoomInfoAsync()
        {
            var room = await BililiveApi.GetRoomInfoAsync(RoomId);

            RoomInfoUpdated?.Invoke(this, new RoomInfoUpdatedArgs {
                Room = room
            });
            return(room);
        }
Esempio n. 3
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);
        }