示例#1
0
 /// <inheritdoc cref="Command.VendorRemoteButtonDown"/>
 /// <param name="source">The <c>CecMessage</c> source.</param>
 /// <param name="destination">The <c>CecMessage</c> destination.</param>
 /// <param name="data">The data.</param>
 /// <returns>A <c>CecMessage</c> that represents the command.</returns>
 /// <exception cref="ArgumentException"></exception>
 public static CecMessage VendorRemoteButtonDown(LogicalAddress source, LogicalAddress destination, string data)
 => CecMessageBuilder.VendorRemoteButtonDown(source, destination, ByteArrayHelper.ToByteArray(data));
示例#2
0
 /// <inheritdoc cref="Command.VendorCommandWithId"/>
 /// <param name="source">The <c>CecMessage</c> source.</param>
 /// <param name="destination">The <c>CecMessage</c> destination.</param>
 /// <param name="vendorId">The Vendor Id.</param>
 /// <param name="data">The data.</param>
 /// <returns>A <c>CecMessage</c> that represents the command.</returns>
 /// <exception cref="ArgumentException"></exception>
 public static CecMessage VendorCommandWithId(LogicalAddress source, LogicalAddress destination, int vendorId, string data)
 => CecMessageBuilder.VendorCommandWithId(source, destination, vendorId, ByteArrayHelper.ToByteArray(data));