示例#1
0
        public LdpVolumeInfoResponse SetVolumeInfoResponse(bool mute)
        {
            var response = LdpVolumeInfoResponse.CreateBuilder();

            response.Type   = VolumeInfoType.MUTE;
            response.IsMute = mute;
            return(response.Build());
        }
示例#2
0
        public LdpVolumeInfoResponse SetVolumeInfoResponse(int volume)
        {
            var response = LdpVolumeInfoResponse.CreateBuilder();

            response.Type   = VolumeInfoType.VOLUME;
            response.Volume = volume;
            return(response.Build());
        }