UAAlias.ts 404 B

12345678910111213
  1. import { XMLElem, type IToXML } from "@/util/XmlElem";
  2. export class UAAlias implements IToXML{
  3. constructor(public alias: string,
  4. public id: string) {
  5. }
  6. toXML(): XMLElem {
  7. return new XMLElem('Alias', this.id).attr('Alias', this.alias);
  8. }
  9. static fromXML(xmlObject: any): UAAlias {
  10. return new UAAlias( xmlObject['@_Alias'], xmlObject['#text']);
  11. }
  12. }