Type.registerNamespace('NtkWeb.Services');
NtkWeb.Services.Common=function() {
NtkWeb.Services.Common.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
NtkWeb.Services.Common.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return NtkWeb.Services.Common._staticInstance.get_path();},
GetImageOcena:function(sImageGuid,succeededCallback, failedCallback, userContext) {
/// <param name="sImageGuid" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetImageOcena',false,{sImageGuid:sImageGuid},succeededCallback,failedCallback,userContext); },
GetImageTitle:function(sImageGuid,succeededCallback, failedCallback, userContext) {
/// <param name="sImageGuid" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetImageTitle',false,{sImageGuid:sImageGuid},succeededCallback,failedCallback,userContext); },
VoteUp:function(sImageGuid,succeededCallback, failedCallback, userContext) {
/// <param name="sImageGuid" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'VoteUp',false,{sImageGuid:sImageGuid},succeededCallback,failedCallback,userContext); },
VoteDown:function(sImageGuid,succeededCallback, failedCallback, userContext) {
/// <param name="sImageGuid" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'VoteDown',false,{sImageGuid:sImageGuid},succeededCallback,failedCallback,userContext); },
SendMail:function(sImageGuid,emailFrom,emailTo,message,succeededCallback, failedCallback, userContext) {
/// <param name="sImageGuid" type="String">System.String</param>
/// <param name="emailFrom" type="String">System.String</param>
/// <param name="emailTo" type="String">System.String</param>
/// <param name="message" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'SendMail',false,{sImageGuid:sImageGuid,emailFrom:emailFrom,emailTo:emailTo,message:message},succeededCallback,failedCallback,userContext); },
AddToPersonalCalendar:function(id,buttonId,succeededCallback, failedCallback, userContext) {
/// <param name="id" type="Number">System.Int32</param>
/// <param name="buttonId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'AddToPersonalCalendar',false,{id:id,buttonId:buttonId},succeededCallback,failedCallback,userContext); },
RemoveFromPersonalCalendar:function(id,buttonId,succeededCallback, failedCallback, userContext) {
/// <param name="id" type="Number">System.Int32</param>
/// <param name="buttonId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'RemoveFromPersonalCalendar',false,{id:id,buttonId:buttonId},succeededCallback,failedCallback,userContext); }}
NtkWeb.Services.Common.registerClass('NtkWeb.Services.Common',Sys.Net.WebServiceProxy);
NtkWeb.Services.Common._staticInstance = new NtkWeb.Services.Common();
NtkWeb.Services.Common.set_path = function(value) {
NtkWeb.Services.Common._staticInstance.set_path(value); }
NtkWeb.Services.Common.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return NtkWeb.Services.Common._staticInstance.get_path();}
NtkWeb.Services.Common.set_timeout = function(value) {
NtkWeb.Services.Common._staticInstance.set_timeout(value); }
NtkWeb.Services.Common.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return NtkWeb.Services.Common._staticInstance.get_timeout(); }
NtkWeb.Services.Common.set_defaultUserContext = function(value) { 
NtkWeb.Services.Common._staticInstance.set_defaultUserContext(value); }
NtkWeb.Services.Common.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return NtkWeb.Services.Common._staticInstance.get_defaultUserContext(); }
NtkWeb.Services.Common.set_defaultSucceededCallback = function(value) { 
 NtkWeb.Services.Common._staticInstance.set_defaultSucceededCallback(value); }
NtkWeb.Services.Common.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return NtkWeb.Services.Common._staticInstance.get_defaultSucceededCallback(); }
NtkWeb.Services.Common.set_defaultFailedCallback = function(value) { 
NtkWeb.Services.Common._staticInstance.set_defaultFailedCallback(value); }
NtkWeb.Services.Common.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return NtkWeb.Services.Common._staticInstance.get_defaultFailedCallback(); }
NtkWeb.Services.Common.set_path("/Services/Common.asmx");
NtkWeb.Services.Common.GetImageOcena= function(sImageGuid,onSuccess,onFailed,userContext) {
/// <param name="sImageGuid" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
NtkWeb.Services.Common._staticInstance.GetImageOcena(sImageGuid,onSuccess,onFailed,userContext); }
NtkWeb.Services.Common.GetImageTitle= function(sImageGuid,onSuccess,onFailed,userContext) {
/// <param name="sImageGuid" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
NtkWeb.Services.Common._staticInstance.GetImageTitle(sImageGuid,onSuccess,onFailed,userContext); }
NtkWeb.Services.Common.VoteUp= function(sImageGuid,onSuccess,onFailed,userContext) {
/// <param name="sImageGuid" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
NtkWeb.Services.Common._staticInstance.VoteUp(sImageGuid,onSuccess,onFailed,userContext); }
NtkWeb.Services.Common.VoteDown= function(sImageGuid,onSuccess,onFailed,userContext) {
/// <param name="sImageGuid" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
NtkWeb.Services.Common._staticInstance.VoteDown(sImageGuid,onSuccess,onFailed,userContext); }
NtkWeb.Services.Common.SendMail= function(sImageGuid,emailFrom,emailTo,message,onSuccess,onFailed,userContext) {
/// <param name="sImageGuid" type="String">System.String</param>
/// <param name="emailFrom" type="String">System.String</param>
/// <param name="emailTo" type="String">System.String</param>
/// <param name="message" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
NtkWeb.Services.Common._staticInstance.SendMail(sImageGuid,emailFrom,emailTo,message,onSuccess,onFailed,userContext); }
NtkWeb.Services.Common.AddToPersonalCalendar= function(id,buttonId,onSuccess,onFailed,userContext) {
/// <param name="id" type="Number">System.Int32</param>
/// <param name="buttonId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
NtkWeb.Services.Common._staticInstance.AddToPersonalCalendar(id,buttonId,onSuccess,onFailed,userContext); }
NtkWeb.Services.Common.RemoveFromPersonalCalendar= function(id,buttonId,onSuccess,onFailed,userContext) {
/// <param name="id" type="Number">System.Int32</param>
/// <param name="buttonId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
NtkWeb.Services.Common._staticInstance.RemoveFromPersonalCalendar(id,buttonId,onSuccess,onFailed,userContext); }
