28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
namespace CANFDApiProxy.Requests
|
|
{
|
|
public class CanConfigItem
|
|
{
|
|
public CanConfigItem(int base_or_arb_bitrate, int base_or_arb_sjw, int data_bitrate, int data_sjw, string filetype, bool included, bool is_fd)
|
|
{
|
|
this.base_or_arb_bitrate = base_or_arb_bitrate;
|
|
this.base_or_arb_sjw = base_or_arb_sjw;
|
|
this.data_bitrate = data_bitrate;
|
|
this.data_sjw = data_sjw;
|
|
this.filetype = filetype;
|
|
this.included = included;
|
|
this.is_fd = is_fd;
|
|
}
|
|
public int base_or_arb_bitrate { get; set; }
|
|
public int base_or_arb_sjw { get; set; }
|
|
public int data_bitrate { get; set; }
|
|
public int data_sjw { get; set; }
|
|
public string filetype { get; set; }
|
|
public bool included { get; set; }
|
|
public bool is_fd { get; set; }
|
|
public override string ToString()
|
|
{
|
|
return $"baseBR: {base_or_arb_bitrate}, baseSJW: {base_or_arb_sjw}, br: {data_bitrate}, sjw: {data_sjw}, ft: {filetype}, inc: {included}, fd: {is_fd}";
|
|
}
|
|
}
|
|
}
|