var Service_Comment=function() {
Service_Comment.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Service_Comment.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Service_Comment._staticInstance.get_path();},
getComments:function(cnt_id,succeededCallback, failedCallback, userContext) {
/// <param name="cnt_id" 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(), 'getComments',false,{cnt_id:cnt_id},succeededCallback,failedCallback,userContext); },
addPositiveVote:function(cmn_id,succeededCallback, failedCallback, userContext) {
/// <param name="cmn_id" 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(), 'addPositiveVote',false,{cmn_id:cmn_id},succeededCallback,failedCallback,userContext); },
addNegativeVote:function(cmn_id,succeededCallback, failedCallback, userContext) {
/// <param name="cmn_id" 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(), 'addNegativeVote',false,{cmn_id:cmn_id},succeededCallback,failedCallback,userContext); },
addComment:function(cnt_id,name,email,text,succeededCallback, failedCallback, userContext) {
/// <param name="cnt_id" type="String">System.String</param>
/// <param name="name" type="String">System.String</param>
/// <param name="email" type="String">System.String</param>
/// <param name="text" 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(), 'addComment',false,{cnt_id:cnt_id,name:name,email:email,text:text},succeededCallback,failedCallback,userContext); }}
Service_Comment.registerClass('Service_Comment',Sys.Net.WebServiceProxy);
Service_Comment._staticInstance = new Service_Comment();
Service_Comment.set_path = function(value) {
Service_Comment._staticInstance.set_path(value); }
Service_Comment.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Service_Comment._staticInstance.get_path();}
Service_Comment.set_timeout = function(value) {
Service_Comment._staticInstance.set_timeout(value); }
Service_Comment.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Service_Comment._staticInstance.get_timeout(); }
Service_Comment.set_defaultUserContext = function(value) { 
Service_Comment._staticInstance.set_defaultUserContext(value); }
Service_Comment.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Service_Comment._staticInstance.get_defaultUserContext(); }
Service_Comment.set_defaultSucceededCallback = function(value) { 
 Service_Comment._staticInstance.set_defaultSucceededCallback(value); }
Service_Comment.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Service_Comment._staticInstance.get_defaultSucceededCallback(); }
Service_Comment.set_defaultFailedCallback = function(value) { 
Service_Comment._staticInstance.set_defaultFailedCallback(value); }
Service_Comment.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Service_Comment._staticInstance.get_defaultFailedCallback(); }
Service_Comment.set_enableJsonp = function(value) { Service_Comment._staticInstance.set_enableJsonp(value); }
Service_Comment.get_enableJsonp = function() { 
/// <value type="Boolean">Specifies whether the service supports JSONP for cross domain calling.</value>
return Service_Comment._staticInstance.get_enableJsonp(); }
Service_Comment.set_jsonpCallbackParameter = function(value) { Service_Comment._staticInstance.set_jsonpCallbackParameter(value); }
Service_Comment.get_jsonpCallbackParameter = function() { 
/// <value type="String">Specifies the parameter name that contains the callback function name for a JSONP request.</value>
return Service_Comment._staticInstance.get_jsonpCallbackParameter(); }
Service_Comment.set_path("http://www.asre-iranian.ir/WCF/Service_Comment.svc");
Service_Comment.getComments= function(cnt_id,onSuccess,onFailed,userContext) {
/// <param name="cnt_id" 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>
Service_Comment._staticInstance.getComments(cnt_id,onSuccess,onFailed,userContext); }
Service_Comment.addPositiveVote= function(cmn_id,onSuccess,onFailed,userContext) {
/// <param name="cmn_id" 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>
Service_Comment._staticInstance.addPositiveVote(cmn_id,onSuccess,onFailed,userContext); }
Service_Comment.addNegativeVote= function(cmn_id,onSuccess,onFailed,userContext) {
/// <param name="cmn_id" 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>
Service_Comment._staticInstance.addNegativeVote(cmn_id,onSuccess,onFailed,userContext); }
Service_Comment.addComment= function(cnt_id,name,email,text,onSuccess,onFailed,userContext) {
/// <param name="cnt_id" type="String">System.String</param>
/// <param name="name" type="String">System.String</param>
/// <param name="email" type="String">System.String</param>
/// <param name="text" 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>
Service_Comment._staticInstance.addComment(cnt_id,name,email,text,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('ENewsPaper.Core');
if (typeof(ENewsPaper.Core.Comment_DTO) === 'undefined') {
ENewsPaper.Core.Comment_DTO=gtc("Comment_DTO:http://schemas.datacontract.org/2004/07/ENewsPaper.Core");
ENewsPaper.Core.Comment_DTO.registerClass('ENewsPaper.Core.Comment_DTO');
}
if (typeof(ENewsPaper.Core.callBackMessage) === 'undefined') {
ENewsPaper.Core.callBackMessage=gtc("callBackMessage:http://schemas.datacontract.org/2004/07/ENewsPaper.Core");
ENewsPaper.Core.callBackMessage.registerClass('ENewsPaper.Core.callBackMessage');
}

