public TrainSegmentType() { this._trainInfo = new TrainInfoType(); this._equipment = new ClassCodeType(); this._operatingCompany = new CompanyNameType(); this._marketingCompany = new CompanyNameType(); this._arrivalStation = new StationDetailsType(); this._departureStation = new StationDetailsType(); }
internal UsbInterfaceDescriptor(MonoUsbAltInterfaceDescriptor altInterfaceDescriptor) { AlternateID = altInterfaceDescriptor.bAlternateSetting; Class = altInterfaceDescriptor.bInterfaceClass; DescriptorType = altInterfaceDescriptor.bDescriptorType; EndpointCount = altInterfaceDescriptor.bNumEndpoints; InterfaceID = altInterfaceDescriptor.bInterfaceNumber; Length = altInterfaceDescriptor.bLength; Protocol = altInterfaceDescriptor.bInterfaceProtocol; StringIndex = altInterfaceDescriptor.iInterface; SubClass = altInterfaceDescriptor.bInterfaceSubClass; }
internal UsbDeviceDescriptor(MonoUsbDeviceDescriptor usbDeviceDescriptor) { BcdDevice = usbDeviceDescriptor.BcdDevice; BcdUsb = usbDeviceDescriptor.BcdUsb; Class = usbDeviceDescriptor.Class; ConfigurationCount = usbDeviceDescriptor.ConfigurationCount; DescriptorType = usbDeviceDescriptor.DescriptorType; Length = usbDeviceDescriptor.Length; ManufacturerStringIndex = usbDeviceDescriptor.ManufacturerStringIndex; MaxPacketSize0 = usbDeviceDescriptor.MaxPacketSize0; ProductID = usbDeviceDescriptor.ProductID; ProductStringIndex = usbDeviceDescriptor.ProductStringIndex; Protocol = usbDeviceDescriptor.Protocol; SerialStringIndex = usbDeviceDescriptor.SerialStringIndex; SubClass = usbDeviceDescriptor.SubClass; VendorID = usbDeviceDescriptor.VendorID; }
internal UsbInterfaceDescriptor(LibUsbAltInterfaceDescriptor altInterfaceDescriptor) { AlternateID = altInterfaceDescriptor.bAlternateSetting; Class = altInterfaceDescriptor.bInterfaceClass; DescriptorType = altInterfaceDescriptor.bDescriptorType; EndpointCount = altInterfaceDescriptor.bNumEndpoints; InterfaceID = altInterfaceDescriptor.bInterfaceNumber; Length = altInterfaceDescriptor.bLength; Protocol = altInterfaceDescriptor.bInterfaceProtocol; StringIndex = altInterfaceDescriptor.iInterface; SubClass = altInterfaceDescriptor.bInterfaceSubClass; }
internal UsbDeviceDescriptor(LibUsbDeviceDescriptor usbDeviceDescriptor) { BcdDevice = usbDeviceDescriptor.BcdDevice; BcdUsb = usbDeviceDescriptor.BcdUsb; Class = usbDeviceDescriptor.Class; ConfigurationCount = usbDeviceDescriptor.ConfigurationCount; DescriptorType = usbDeviceDescriptor.DescriptorType; Length = usbDeviceDescriptor.Length; ManufacturerStringIndex = usbDeviceDescriptor.ManufacturerStringIndex; MaxPacketSize0 = usbDeviceDescriptor.MaxPacketSize0; ProductID = usbDeviceDescriptor.ProductID; ProductStringIndex = usbDeviceDescriptor.ProductStringIndex; Protocol = usbDeviceDescriptor.Protocol; SerialStringIndex = usbDeviceDescriptor.SerialStringIndex; SubClass = usbDeviceDescriptor.SubClass; VendorID = usbDeviceDescriptor.VendorID; }