@nodert-win10-cu/windows.applicationmodel.appservice
Version:
Use the Windows.ApplicationModel.AppService UWP API directly from Node.js
179 lines (134 loc) • 4.78 kB
JavaScript
_AppServiceClosedStatus = function () {
this.completed = 0;
this.canceled = 1;
this.resourceLimitsExceeded = 2;
this.unknown = 3;
}
exports.AppServiceClosedStatus = new _AppServiceClosedStatus();
_AppServiceConnectionStatus = function () {
this.success = 0;
this.appNotInstalled = 1;
this.appUnavailable = 2;
this.appServiceUnavailable = 3;
this.unknown = 4;
this.remoteSystemUnavailable = 5;
this.remoteSystemNotSupportedByApp = 6;
this.notAuthorized = 7;
}
exports.AppServiceConnectionStatus = new _AppServiceConnectionStatus();
_AppServiceResponseStatus = function () {
this.success = 0;
this.failure = 1;
this.resourceLimitsExceeded = 2;
this.unknown = 3;
this.remoteSystemUnavailable = 4;
this.messageSizeTooLarge = 5;
}
exports.AppServiceResponseStatus = new _AppServiceResponseStatus();
AppServiceRequest = (function () {
var cls = function AppServiceRequest() {
this.message = new Object();
};
cls.prototype.sendResponseAsync = function sendResponseAsync(message, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="message" type="Object">A param.</param>
/// </signature>
}
return cls;
}) ();
exports.AppServiceRequest = AppServiceRequest;
AppServiceDeferral = (function () {
var cls = function AppServiceDeferral() {
};
cls.prototype.complete = function complete() {
/// <signature>
/// <summary>Function summary.</summary>
/// </signature>
}
return cls;
}) ();
exports.AppServiceDeferral = AppServiceDeferral;
AppServiceResponse = (function () {
var cls = function AppServiceResponse() {
this.message = new Object();
this.status = new AppServiceResponseStatus();
};
return cls;
}) ();
exports.AppServiceResponse = AppServiceResponse;
AppServiceConnection = (function () {
var cls = function AppServiceConnection() {
this.packageFamilyName = new String();
this.appServiceName = new String();
this.user = new Object();
};
cls.prototype.openAsync = function openAsync(callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// </signature>
}
cls.prototype.sendMessageAsync = function sendMessageAsync(message, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="message" type="Object">A param.</param>
/// </signature>
}
cls.prototype.openRemoteAsync = function openRemoteAsync(remoteSystemConnectionRequest, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="remoteSystemConnectionRequest" type="Object">A param.</param>
/// </signature>
}
cls.prototype.close = function close() {
}
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.AppServiceConnection = AppServiceConnection;
AppServiceRequestReceivedEventArgs = (function () {
var cls = function AppServiceRequestReceivedEventArgs() {
this.request = new AppServiceRequest();
};
cls.prototype.getDeferral = function getDeferral() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="AppServiceDeferral" />
/// </signature>
return new AppServiceDeferral();
}
return cls;
}) ();
exports.AppServiceRequestReceivedEventArgs = AppServiceRequestReceivedEventArgs;
AppServiceClosedEventArgs = (function () {
var cls = function AppServiceClosedEventArgs() {
this.status = new AppServiceClosedStatus();
};
return cls;
}) ();
exports.AppServiceClosedEventArgs = AppServiceClosedEventArgs;
AppServiceTriggerDetails = (function () {
var cls = function AppServiceTriggerDetails() {
this.appServiceConnection = new AppServiceConnection();
this.callerPackageFamilyName = new String();
this.name = new String();
this.isRemoteSystemConnection = new Boolean();
};
return cls;
}) ();
exports.AppServiceTriggerDetails = AppServiceTriggerDetails;
AppServiceCatalog = (function () {
var cls = function AppServiceCatalog() {
};
cls.findAppServiceProvidersAsync = function findAppServiceProvidersAsync(appServiceName, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="appServiceName" type="String">A param.</param>
/// </signature>
}
return cls;
}) ();
exports.AppServiceCatalog = AppServiceCatalog;