@nodert-win10/windows.web.syndication
Version:
Use the Windows.Web.Syndication UWP API directly from Node.js
736 lines (627 loc) • 22.5 kB
JavaScript
RetrievalProgress = (function () {
var cls = function RetrievalProgress() {
this.bytesRetrieved = new Number();
this.totalBytesToRetrieve = new Number();
};
return cls;
}) ();
exports.RetrievalProgress = RetrievalProgress;
TransferProgress = (function () {
var cls = function TransferProgress() {
this.bytesSent = new Number();
this.totalBytesToSend = new Number();
this.bytesRetrieved = new Number();
this.totalBytesToRetrieve = new Number();
};
return cls;
}) ();
exports.TransferProgress = TransferProgress;
_SyndicationFormat = function () {
this.atom10 = 0;
this.rss20 = 1;
this.rss10 = 2;
this.rss092 = 3;
this.rss091 = 4;
this.atom03 = 5;
}
exports.SyndicationFormat = new _SyndicationFormat();
_SyndicationErrorStatus = function () {
this.unknown = 0;
this.missingRequiredElement = 1;
this.missingRequiredAttribute = 2;
this.invalidXml = 3;
this.unexpectedContent = 4;
this.unsupportedFormat = 5;
}
exports.SyndicationErrorStatus = new _SyndicationErrorStatus();
_SyndicationTextType = function () {
this.text = 0;
this.html = 1;
this.xhtml = 2;
}
exports.SyndicationTextType = new _SyndicationTextType();
SyndicationAttribute = (function () {
var cls = function SyndicationAttribute() {
this.value = new String();
this.namespace = new String();
this.name = new String();
};
var cls = function SyndicationAttribute(attributeName, attributeNamespace, attributeValue) {
this.value = new String();
this.namespace = new String();
this.name = new String();
};
return cls;
}) ();
exports.SyndicationAttribute = SyndicationAttribute;
ISyndicationNode = (function () {
var cls = function ISyndicationNode() {
this.attributeExtensions = new Object();
this.baseUri = new Object();
this.elementExtensions = new Object();
this.language = new String();
this.nodeName = new String();
this.nodeNamespace = new String();
this.nodeValue = new String();
};
cls.prototype.getXmlDocument = function getXmlDocument(format) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="format" type="SyndicationFormat">A param.</param>
/// <returns type="Object" />
/// </signature>
return new Object();
}
return cls;
}) ();
exports.ISyndicationNode = ISyndicationNode;
SyndicationNode = (function () {
var cls = function SyndicationNode() {
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
};
var cls = function SyndicationNode(nodeName, nodeNamespace, nodeValue) {
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
};
cls.prototype.getXmlDocument = function getXmlDocument(format) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="format" type="SyndicationFormat">A param.</param>
/// <returns type="Object" />
/// </signature>
return new Object();
}
return cls;
}) ();
exports.SyndicationNode = SyndicationNode;
SyndicationGenerator = (function () {
var cls = function SyndicationGenerator() {
this.version = new String();
this.uri = new Object();
this.text = new String();
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
};
var cls = function SyndicationGenerator(text) {
this.version = new String();
this.uri = new Object();
this.text = new String();
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
};
cls.prototype.getXmlDocument = function getXmlDocument(format) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="format" type="SyndicationFormat">A param.</param>
/// <returns type="Object" />
/// </signature>
return new Object();
}
return cls;
}) ();
exports.SyndicationGenerator = SyndicationGenerator;
ISyndicationText = (function () {
var cls = function ISyndicationText() {
this.text = new String();
this.type = new String();
this.xml = new Object();
};
return cls;
}) ();
exports.ISyndicationText = ISyndicationText;
SyndicationText = (function () {
var cls = function SyndicationText() {
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
this.xml = new Object();
this.type = new String();
this.text = new String();
};
var cls = function SyndicationText(text) {
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
this.xml = new Object();
this.type = new String();
this.text = new String();
};
var cls = function SyndicationText(text, type) {
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
this.xml = new Object();
this.type = new String();
this.text = new String();
};
cls.prototype.getXmlDocument = function getXmlDocument(format) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="format" type="SyndicationFormat">A param.</param>
/// <returns type="Object" />
/// </signature>
return new Object();
}
return cls;
}) ();
exports.SyndicationText = SyndicationText;
SyndicationContent = (function () {
var cls = function SyndicationContent() {
this.sourceUri = new Object();
this.nodeValue = new String();
this.baseUri = new Object();
this.language = new String();
this.nodeName = new String();
this.nodeNamespace = new String();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
this.text = new String();
this.type = new String();
this.xml = new Object();
};
var cls = function SyndicationContent(text, type) {
this.sourceUri = new Object();
this.nodeValue = new String();
this.baseUri = new Object();
this.language = new String();
this.nodeName = new String();
this.nodeNamespace = new String();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
this.text = new String();
this.type = new String();
this.xml = new Object();
};
var cls = function SyndicationContent(sourceUri) {
this.sourceUri = new Object();
this.nodeValue = new String();
this.baseUri = new Object();
this.language = new String();
this.nodeName = new String();
this.nodeNamespace = new String();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
this.text = new String();
this.type = new String();
this.xml = new Object();
};
cls.prototype.getXmlDocument = function getXmlDocument(format) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="format" type="SyndicationFormat">A param.</param>
/// <returns type="Object" />
/// </signature>
return new Object();
}
return cls;
}) ();
exports.SyndicationContent = SyndicationContent;
SyndicationLink = (function () {
var cls = function SyndicationLink() {
this.uri = new Object();
this.title = new String();
this.resourceLanguage = new String();
this.relationship = new String();
this.mediaType = new String();
this.length = new Number();
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
};
var cls = function SyndicationLink(uri) {
this.uri = new Object();
this.title = new String();
this.resourceLanguage = new String();
this.relationship = new String();
this.mediaType = new String();
this.length = new Number();
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
};
var cls = function SyndicationLink(uri, relationship, title, mediaType, length) {
this.uri = new Object();
this.title = new String();
this.resourceLanguage = new String();
this.relationship = new String();
this.mediaType = new String();
this.length = new Number();
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
};
cls.prototype.getXmlDocument = function getXmlDocument(format) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="format" type="SyndicationFormat">A param.</param>
/// <returns type="Object" />
/// </signature>
return new Object();
}
return cls;
}) ();
exports.SyndicationLink = SyndicationLink;
SyndicationPerson = (function () {
var cls = function SyndicationPerson() {
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
this.uri = new Object();
this.name = new String();
this.email = new String();
};
var cls = function SyndicationPerson(name) {
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
this.uri = new Object();
this.name = new String();
this.email = new String();
};
var cls = function SyndicationPerson(name, email, uri) {
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
this.uri = new Object();
this.name = new String();
this.email = new String();
};
cls.prototype.getXmlDocument = function getXmlDocument(format) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="format" type="SyndicationFormat">A param.</param>
/// <returns type="Object" />
/// </signature>
return new Object();
}
return cls;
}) ();
exports.SyndicationPerson = SyndicationPerson;
SyndicationCategory = (function () {
var cls = function SyndicationCategory() {
this.term = new String();
this.scheme = new String();
this.label = new String();
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
};
var cls = function SyndicationCategory(term) {
this.term = new String();
this.scheme = new String();
this.label = new String();
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
};
var cls = function SyndicationCategory(term, scheme, label) {
this.term = new String();
this.scheme = new String();
this.label = new String();
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
};
cls.prototype.getXmlDocument = function getXmlDocument(format) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="format" type="SyndicationFormat">A param.</param>
/// <returns type="Object" />
/// </signature>
return new Object();
}
return cls;
}) ();
exports.SyndicationCategory = SyndicationCategory;
SyndicationFeed = (function () {
var cls = function SyndicationFeed() {
this.title = new ISyndicationText();
this.subtitle = new ISyndicationText();
this.rights = new ISyndicationText();
this.generator = new SyndicationGenerator();
this.lastUpdatedTime = new Date();
this.imageUri = new Object();
this.iconUri = new Object();
this.id = new String();
this.firstUri = new Object();
this.items = new Object();
this.lastUri = new Object();
this.links = new Object();
this.nextUri = new Object();
this.previousUri = new Object();
this.categories = new Object();
this.sourceFormat = new SyndicationFormat();
this.contributors = new Object();
this.authors = new Object();
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
};
var cls = function SyndicationFeed(title, subtitle, uri) {
this.title = new ISyndicationText();
this.subtitle = new ISyndicationText();
this.rights = new ISyndicationText();
this.generator = new SyndicationGenerator();
this.lastUpdatedTime = new Date();
this.imageUri = new Object();
this.iconUri = new Object();
this.id = new String();
this.firstUri = new Object();
this.items = new Object();
this.lastUri = new Object();
this.links = new Object();
this.nextUri = new Object();
this.previousUri = new Object();
this.categories = new Object();
this.sourceFormat = new SyndicationFormat();
this.contributors = new Object();
this.authors = new Object();
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
};
cls.prototype.load = function load(feed) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="feed" type="String">A param.</param>
/// </signature>
}
cls.prototype.loadFromXml = function loadFromXml(feedDocument) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="feedDocument" type="Object">A param.</param>
/// </signature>
}
cls.prototype.getXmlDocument = function getXmlDocument(format) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="format" type="SyndicationFormat">A param.</param>
/// <returns type="Object" />
/// </signature>
return new Object();
}
return cls;
}) ();
exports.SyndicationFeed = SyndicationFeed;
SyndicationItem = (function () {
var cls = function SyndicationItem() {
this.title = new ISyndicationText();
this.source = new SyndicationFeed();
this.rights = new ISyndicationText();
this.summary = new ISyndicationText();
this.publishedDate = new Date();
this.commentsUri = new Object();
this.id = new String();
this.lastUpdatedTime = new Date();
this.content = new SyndicationContent();
this.editUri = new Object();
this.links = new Object();
this.authors = new Object();
this.categories = new Object();
this.contributors = new Object();
this.itemUri = new Object();
this.eTag = new String();
this.editMediaUri = new Object();
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
};
var cls = function SyndicationItem(title, content, uri) {
this.title = new ISyndicationText();
this.source = new SyndicationFeed();
this.rights = new ISyndicationText();
this.summary = new ISyndicationText();
this.publishedDate = new Date();
this.commentsUri = new Object();
this.id = new String();
this.lastUpdatedTime = new Date();
this.content = new SyndicationContent();
this.editUri = new Object();
this.links = new Object();
this.authors = new Object();
this.categories = new Object();
this.contributors = new Object();
this.itemUri = new Object();
this.eTag = new String();
this.editMediaUri = new Object();
this.nodeValue = new String();
this.nodeNamespace = new String();
this.nodeName = new String();
this.language = new String();
this.baseUri = new Object();
this.attributeExtensions = new Object();
this.elementExtensions = new Object();
};
cls.prototype.load = function load(item) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="item" type="String">A param.</param>
/// </signature>
}
cls.prototype.loadFromXml = function loadFromXml(itemDocument) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="itemDocument" type="Object">A param.</param>
/// </signature>
}
cls.prototype.getXmlDocument = function getXmlDocument(format) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="format" type="SyndicationFormat">A param.</param>
/// <returns type="Object" />
/// </signature>
return new Object();
}
return cls;
}) ();
exports.SyndicationItem = SyndicationItem;
ISyndicationClient = (function () {
var cls = function ISyndicationClient() {
this.bypassCacheOnRetrieve = new Boolean();
this.maxResponseBufferSize = new Number();
this.proxyCredential = new Object();
this.serverCredential = new Object();
this.timeout = new Number();
};
cls.prototype.retrieveFeedAsync = function retrieveFeedAsync(uri, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="uri" type="Object">A param.</param>
/// </signature>
}
cls.prototype.setRequestHeader = function setRequestHeader(name, value) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="name" type="String">A param.</param>
/// <param name="value" type="String">A param.</param>
/// </signature>
}
return cls;
}) ();
exports.ISyndicationClient = ISyndicationClient;
SyndicationClient = (function () {
var cls = function SyndicationClient() {
this.timeout = new Number();
this.serverCredential = new Object();
this.proxyCredential = new Object();
this.maxResponseBufferSize = new Number();
this.bypassCacheOnRetrieve = new Boolean();
};
var cls = function SyndicationClient(serverCredential) {
this.timeout = new Number();
this.serverCredential = new Object();
this.proxyCredential = new Object();
this.maxResponseBufferSize = new Number();
this.bypassCacheOnRetrieve = new Boolean();
};
cls.prototype.retrieveFeedAsync = function retrieveFeedAsync(uri, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="uri" type="Object">A param.</param>
/// </signature>
}
cls.prototype.setRequestHeader = function setRequestHeader(name, value) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="name" type="String">A param.</param>
/// <param name="value" type="String">A param.</param>
/// </signature>
}
return cls;
}) ();
exports.SyndicationClient = SyndicationClient;
SyndicationError = (function () {
var cls = function SyndicationError() {
};
cls.getStatus = function getStatus(hresult) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="hresult" type="Number">A param.</param>
/// <returns type="SyndicationErrorStatus" />
/// </signature>
return new SyndicationErrorStatus();
}
return cls;
}) ();
exports.SyndicationError = SyndicationError;