InterfaceDescriptor class
class InterfaceDescriptor extends ChromeObject { InterfaceDescriptor({int interfaceNumber, int alternateSetting, int interfaceClass, int interfaceSubclass, int interfaceProtocol, String description, List<EndpointDescriptor> endpoints}) { if (interfaceNumber != null) this.interfaceNumber = interfaceNumber; if (alternateSetting != null) this.alternateSetting = alternateSetting; if (interfaceClass != null) this.interfaceClass = interfaceClass; if (interfaceSubclass != null) this.interfaceSubclass = interfaceSubclass; if (interfaceProtocol != null) this.interfaceProtocol = interfaceProtocol; if (description != null) this.description = description; if (endpoints != null) this.endpoints = endpoints; } InterfaceDescriptor.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); int get interfaceNumber => jsProxy['interfaceNumber']; set interfaceNumber(int value) => jsProxy['interfaceNumber'] = value; int get alternateSetting => jsProxy['alternateSetting']; set alternateSetting(int value) => jsProxy['alternateSetting'] = value; int get interfaceClass => jsProxy['interfaceClass']; set interfaceClass(int value) => jsProxy['interfaceClass'] = value; int get interfaceSubclass => jsProxy['interfaceSubclass']; set interfaceSubclass(int value) => jsProxy['interfaceSubclass'] = value; int get interfaceProtocol => jsProxy['interfaceProtocol']; set interfaceProtocol(int value) => jsProxy['interfaceProtocol'] = value; String get description => jsProxy['description']; set description(String value) => jsProxy['description'] = value; List<EndpointDescriptor> get endpoints => listify(jsProxy['endpoints'], _createEndpointDescriptor); set endpoints(List<EndpointDescriptor> value) => jsProxy['endpoints'] = jsify(value); }
Extends
ChromeObject > InterfaceDescriptor
Constructors
new InterfaceDescriptor({int interfaceNumber, int alternateSetting, int interfaceClass, int interfaceSubclass, int interfaceProtocol, String description, List<EndpointDescriptor> endpoints}) #
Create a new instance of a ChromeObject
, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
InterfaceDescriptor({int interfaceNumber, int alternateSetting, int interfaceClass, int interfaceSubclass, int interfaceProtocol, String description, List<EndpointDescriptor> endpoints}) { if (interfaceNumber != null) this.interfaceNumber = interfaceNumber; if (alternateSetting != null) this.alternateSetting = alternateSetting; if (interfaceClass != null) this.interfaceClass = interfaceClass; if (interfaceSubclass != null) this.interfaceSubclass = interfaceSubclass; if (interfaceProtocol != null) this.interfaceProtocol = interfaceProtocol; if (description != null) this.description = description; if (endpoints != null) this.endpoints = endpoints; }
new InterfaceDescriptor.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject
, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
InterfaceDescriptor.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
int alternateSetting #
int get alternateSetting => jsProxy['alternateSetting'];
set alternateSetting(int value) => jsProxy['alternateSetting'] = value;
String description #
String get description => jsProxy['description'];
set description(String value) => jsProxy['description'] = value;
List<EndpointDescriptor> endpoints #
List<EndpointDescriptor> get endpoints => listify(jsProxy['endpoints'], _createEndpointDescriptor);
set endpoints(List<EndpointDescriptor> value) => jsProxy['endpoints'] = jsify(value);
int interfaceClass #
int get interfaceClass => jsProxy['interfaceClass'];
set interfaceClass(int value) => jsProxy['interfaceClass'] = value;
int interfaceNumber #
int get interfaceNumber => jsProxy['interfaceNumber'];
set interfaceNumber(int value) => jsProxy['interfaceNumber'] = value;
int interfaceProtocol #
int get interfaceProtocol => jsProxy['interfaceProtocol'];
set interfaceProtocol(int value) => jsProxy['interfaceProtocol'] = value;
int interfaceSubclass #
int get interfaceSubclass => jsProxy['interfaceSubclass'];
set interfaceSubclass(int value) => jsProxy['interfaceSubclass'] = value;
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();