public LdpPacket BuildPacket(LdpPreparableVolumeInfoResponse response) { var packet = LdpPacket.CreateBuilder(); packet.Type = PacketType.PREPARABLE_VOLUME_INFO_RESPONSE; packet.PreparableVolumeInfoResponse = response; return packet.Build(); }
public LdpPreparableVolumeInfoResponse SetPreparableVolumeInfoRequest(int volume, bool mute) { var response = LdpPreparableVolumeInfoResponse.CreateBuilder(); response.Volume = volume; response.IsMute = mute; return(response.Build()); }
public LdpPacket BuildPacket(LdpPreparableVolumeInfoResponse response) { var packet = LdpPacket.CreateBuilder(); packet.Type = PacketType.PREPARABLE_VOLUME_INFO_RESPONSE; packet.PreparableVolumeInfoResponse = response; return(packet.Build()); }
public void Dispose() { serverHandler = null; volumeController = null; packetFactory = null; packetRequest = null; volumeInfoResponse = null; preparableVolumeResponse = null; }
public void Dispose() { serverHandler = null; volumeController = null; packetFactory = null; packetRequest = null; volumeInfoResponse = null; preparableVolumeResponse = null; }
public void SendPreparableVolumeInfoPacket() { preparableVolumeResponse = null; packetRequest = null; preparableVolumeResponse = packetFactory .SetPreparableVolumeInfoRequest(volumeController.VolumeValue, volumeController.Mute); packetRequest = packetFactory.BuildPacket(preparableVolumeResponse); serverHandler.GetSenderChannel.Send(packetRequest); }
public void SendPreparableVolumeInfoPacket() { preparableVolumeResponse = null; packetRequest = null; preparableVolumeResponse = packetFactory .SetPreparableVolumeInfoRequest(volumeController.VolumeValue, volumeController.Mute); packetRequest = packetFactory.BuildPacket(preparableVolumeResponse); serverHandler.GetSenderChannel.Send(packetRequest); }