Type.registerNamespace('NKC.BusinessLayer.Services');
NKC.BusinessLayer.Services.ProfileService=function() {
NKC.BusinessLayer.Services.ProfileService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
NKC.BusinessLayer.Services.ProfileService.prototype={
GetProfile:function(profileId,succeededCallback, failedCallback, userContext) {
return this._invoke(NKC.BusinessLayer.Services.ProfileService.get_path(), 'GetProfile',false,{profileId:profileId},succeededCallback,failedCallback,userContext); },
GetRMembers:function(succeededCallback, failedCallback, userContext) {
return this._invoke(NKC.BusinessLayer.Services.ProfileService.get_path(), 'GetRMembers',false,{},succeededCallback,failedCallback,userContext); },
GetRMatris:function(succeededCallback, failedCallback, userContext) {
return this._invoke(NKC.BusinessLayer.Services.ProfileService.get_path(), 'GetRMatris',false,{},succeededCallback,failedCallback,userContext); },
GetCarousel:function(sIdx,eIdx,succeededCallback, failedCallback, userContext) {
return this._invoke(NKC.BusinessLayer.Services.ProfileService.get_path(), 'GetCarousel',false,{sIdx:sIdx,eIdx:eIdx},succeededCallback,failedCallback,userContext); },
CropImage:function(path,h,w,x,y,succeededCallback, failedCallback, userContext) {
return this._invoke(NKC.BusinessLayer.Services.ProfileService.get_path(), 'CropImage',false,{path:path,h:h,w:w,x:x,y:y},succeededCallback,failedCallback,userContext); },
UsernameCheck:function(userName,succeededCallback, failedCallback, userContext) {
return this._invoke(NKC.BusinessLayer.Services.ProfileService.get_path(), 'UsernameCheck',false,{userName:userName},succeededCallback,failedCallback,userContext); },
RetrievePassword:function(userNameOrEmail,succeededCallback, failedCallback, userContext) {
return this._invoke(NKC.BusinessLayer.Services.ProfileService.get_path(), 'RetrievePassword',false,{userNameOrEmail:userNameOrEmail},succeededCallback,failedCallback,userContext); },
DeleteProfile:function(profileId,profileType,succeededCallback, failedCallback, userContext) {
return this._invoke(NKC.BusinessLayer.Services.ProfileService.get_path(), 'DeleteProfile',false,{profileId:profileId,profileType:profileType},succeededCallback,failedCallback,userContext); },
DeletePicture:function(profileId,path,succeededCallback, failedCallback, userContext) {
return this._invoke(NKC.BusinessLayer.Services.ProfileService.get_path(), 'DeletePicture',false,{profileId:profileId,path:path},succeededCallback,failedCallback,userContext); },
UpdatePersonal:function(profileId,initial,name,Gender,dateOfBirth,native,kovil,pirivu,maritalStatus,succeededCallback, failedCallback, userContext) {
return this._invoke(NKC.BusinessLayer.Services.ProfileService.get_path(), 'UpdatePersonal',false,{profileId:profileId,initial:initial,name:name,Gender:Gender,dateOfBirth:dateOfBirth,native:native,kovil:kovil,pirivu:pirivu,maritalStatus:maritalStatus},succeededCallback,failedCallback,userContext); },
UpdateContact:function(profileId,address,city,state,country,pincode,email,phone,mobile,succeededCallback, failedCallback, userContext) {
return this._invoke(NKC.BusinessLayer.Services.ProfileService.get_path(), 'UpdateContact',false,{profileId:profileId,address:address,city:city,state:state,country:country,pincode:pincode,email:email,phone:phone,mobile:mobile},succeededCallback,failedCallback,userContext); },
UpdateProfessinal:function(profileId,education,occupation,succeededCallback, failedCallback, userContext) {
return this._invoke(NKC.BusinessLayer.Services.ProfileService.get_path(), 'UpdateProfessinal',false,{profileId:profileId,education:education,occupation:occupation},succeededCallback,failedCallback,userContext); },
UpdateMisc:function(profileId,aboutMe,hobbies,notify,succeededCallback, failedCallback, userContext) {
return this._invoke(NKC.BusinessLayer.Services.ProfileService.get_path(), 'UpdateMisc',false,{profileId:profileId,aboutMe:aboutMe,hobbies:hobbies,notify:notify},succeededCallback,failedCallback,userContext); },
UpdateLogin:function(profileId,password,succeededCallback, failedCallback, userContext) {
return this._invoke(NKC.BusinessLayer.Services.ProfileService.get_path(), 'UpdateLogin',false,{profileId:profileId,password:password},succeededCallback,failedCallback,userContext); }}
NKC.BusinessLayer.Services.ProfileService.registerClass('NKC.BusinessLayer.Services.ProfileService',Sys.Net.WebServiceProxy);
NKC.BusinessLayer.Services.ProfileService._staticInstance = new NKC.BusinessLayer.Services.ProfileService();
NKC.BusinessLayer.Services.ProfileService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; NKC.BusinessLayer.Services.ProfileService._staticInstance._path = value; }
NKC.BusinessLayer.Services.ProfileService.get_path = function() { return NKC.BusinessLayer.Services.ProfileService._staticInstance._path; }
NKC.BusinessLayer.Services.ProfileService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
NKC.BusinessLayer.Services.ProfileService._staticInstance._timeout = value; }
NKC.BusinessLayer.Services.ProfileService.get_timeout = function() { 
return NKC.BusinessLayer.Services.ProfileService._staticInstance._timeout; }
NKC.BusinessLayer.Services.ProfileService.set_defaultUserContext = function(value) { 
NKC.BusinessLayer.Services.ProfileService._staticInstance._userContext = value; }
NKC.BusinessLayer.Services.ProfileService.get_defaultUserContext = function() { 
return NKC.BusinessLayer.Services.ProfileService._staticInstance._userContext; }
NKC.BusinessLayer.Services.ProfileService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; NKC.BusinessLayer.Services.ProfileService._staticInstance._succeeded = value; }
NKC.BusinessLayer.Services.ProfileService.get_defaultSucceededCallback = function() { 
return NKC.BusinessLayer.Services.ProfileService._staticInstance._succeeded; }
NKC.BusinessLayer.Services.ProfileService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; NKC.BusinessLayer.Services.ProfileService._staticInstance._failed = value; }
NKC.BusinessLayer.Services.ProfileService.get_defaultFailedCallback = function() { 
return NKC.BusinessLayer.Services.ProfileService._staticInstance._failed; }
NKC.BusinessLayer.Services.ProfileService.set_path("/ws/ProfileService.asmx");
NKC.BusinessLayer.Services.ProfileService.GetProfile= function(profileId,onSuccess,onFailed,userContext) {NKC.BusinessLayer.Services.ProfileService._staticInstance.GetProfile(profileId,onSuccess,onFailed,userContext); }
NKC.BusinessLayer.Services.ProfileService.GetRMembers= function(onSuccess,onFailed,userContext) {NKC.BusinessLayer.Services.ProfileService._staticInstance.GetRMembers(onSuccess,onFailed,userContext); }
NKC.BusinessLayer.Services.ProfileService.GetRMatris= function(onSuccess,onFailed,userContext) {NKC.BusinessLayer.Services.ProfileService._staticInstance.GetRMatris(onSuccess,onFailed,userContext); }
NKC.BusinessLayer.Services.ProfileService.GetCarousel= function(sIdx,eIdx,onSuccess,onFailed,userContext) {NKC.BusinessLayer.Services.ProfileService._staticInstance.GetCarousel(sIdx,eIdx,onSuccess,onFailed,userContext); }
NKC.BusinessLayer.Services.ProfileService.CropImage= function(path,h,w,x,y,onSuccess,onFailed,userContext) {NKC.BusinessLayer.Services.ProfileService._staticInstance.CropImage(path,h,w,x,y,onSuccess,onFailed,userContext); }
NKC.BusinessLayer.Services.ProfileService.UsernameCheck= function(userName,onSuccess,onFailed,userContext) {NKC.BusinessLayer.Services.ProfileService._staticInstance.UsernameCheck(userName,onSuccess,onFailed,userContext); }
NKC.BusinessLayer.Services.ProfileService.RetrievePassword= function(userNameOrEmail,onSuccess,onFailed,userContext) {NKC.BusinessLayer.Services.ProfileService._staticInstance.RetrievePassword(userNameOrEmail,onSuccess,onFailed,userContext); }
NKC.BusinessLayer.Services.ProfileService.DeleteProfile= function(profileId,profileType,onSuccess,onFailed,userContext) {NKC.BusinessLayer.Services.ProfileService._staticInstance.DeleteProfile(profileId,profileType,onSuccess,onFailed,userContext); }
NKC.BusinessLayer.Services.ProfileService.DeletePicture= function(profileId,path,onSuccess,onFailed,userContext) {NKC.BusinessLayer.Services.ProfileService._staticInstance.DeletePicture(profileId,path,onSuccess,onFailed,userContext); }
NKC.BusinessLayer.Services.ProfileService.UpdatePersonal= function(profileId,initial,name,Gender,dateOfBirth,native,kovil,pirivu,maritalStatus,onSuccess,onFailed,userContext) {NKC.BusinessLayer.Services.ProfileService._staticInstance.UpdatePersonal(profileId,initial,name,Gender,dateOfBirth,native,kovil,pirivu,maritalStatus,onSuccess,onFailed,userContext); }
NKC.BusinessLayer.Services.ProfileService.UpdateContact= function(profileId,address,city,state,country,pincode,email,phone,mobile,onSuccess,onFailed,userContext) {NKC.BusinessLayer.Services.ProfileService._staticInstance.UpdateContact(profileId,address,city,state,country,pincode,email,phone,mobile,onSuccess,onFailed,userContext); }
NKC.BusinessLayer.Services.ProfileService.UpdateProfessinal= function(profileId,education,occupation,onSuccess,onFailed,userContext) {NKC.BusinessLayer.Services.ProfileService._staticInstance.UpdateProfessinal(profileId,education,occupation,onSuccess,onFailed,userContext); }
NKC.BusinessLayer.Services.ProfileService.UpdateMisc= function(profileId,aboutMe,hobbies,notify,onSuccess,onFailed,userContext) {NKC.BusinessLayer.Services.ProfileService._staticInstance.UpdateMisc(profileId,aboutMe,hobbies,notify,onSuccess,onFailed,userContext); }
NKC.BusinessLayer.Services.ProfileService.UpdateLogin= function(profileId,password,onSuccess,onFailed,userContext) {NKC.BusinessLayer.Services.ProfileService._staticInstance.UpdateLogin(profileId,password,onSuccess,onFailed,userContext); }

