Example #1
0
        public override async Task RoomAnnounce(string roomId, string text)
        {
            var request = new RoomAnnounceRequest
            {
                Id   = roomId,
                Text = text
            };

            await grpcClient.RoomAnnounceAsync(request);
        }
Example #2
0
        public override async Task <string> RoomAnnounce(string roomId)
        {
            var request = new RoomAnnounceRequest
            {
                Id = roomId
            };


            var response = await grpcClient.RoomAnnounceAsync(request);

            return(response?.Text);
        }
Example #3
0
        public async Task <string> RoomAnnounce(string roomId, string text = "")
        {
            var request = new RoomAnnounceRequest();

            request.Id = roomId;
            if (!string.IsNullOrEmpty(text))
            {
                request.Text = text;
            }

            var response = await grpcClient.RoomAnnounceAsync(request);

            return(response?.Text);
        }