Skip to content
Snippets Groups Projects
Verified Commit 79656432 authored by Jan Loewe's avatar Jan Loewe :speech_balloon:
Browse files

fix(manufacturer): change to contact not strict

parent bd4d4f86
No related branches found
No related tags found
No related merge requests found
import { TextBlock } from "./TextBlock"; import { TextBlock } from "./TextBlock";
import { Contact } from "./Contact";
import { XMLElement } from "../XMLElement"; import { XMLElement } from "../XMLElement";
import { Identifications } from "./Identifications"; import { Identifications } from "./Identifications";
import { ContactNotStrict } from "./ContactNotStrict";
export class Item extends XMLElement { export class Item extends XMLElement {
name: TextBlock; name: TextBlock;
description: TextBlock; description: TextBlock;
manufacturer: Contact; manufacturer: ContactNotStrict;
model?: TextBlock; model?: TextBlock;
identifications: Identifications; identifications: Identifications;
...@@ -15,7 +15,7 @@ export class Item extends XMLElement { ...@@ -15,7 +15,7 @@ export class Item extends XMLElement {
this.name = new TextBlock(options.name); this.name = new TextBlock(options.name);
this.description = new TextBlock(options.description); this.description = new TextBlock(options.description);
this.manufacturer = new Contact(options.manufacturer); this.manufacturer = new ContactNotStrict(options.manufacturer);
if (options.model) if (options.model)
this.model = new TextBlock(options.model); this.model = new TextBlock(options.model);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment