var BlogReadService=function() {
BlogReadService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
BlogReadService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return BlogReadService._staticInstance.get_path();},
AddComment:function(title,body,name,captchaString,succeededCallback, failedCallback, userContext) {
/// <param name="title" type="String">System.String</param>
/// <param name="body" type="String">System.String</param>
/// <param name="name" type="String">System.String</param>
/// <param name="captchaString" 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,{title:title,body:body,name:name,captchaString:captchaString},succeededCallback,failedCallback,userContext); },
GetComments:function(succeededCallback, failedCallback, userContext) {
/// <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,{},succeededCallback,failedCallback,userContext); }}
BlogReadService.registerClass('BlogReadService',Sys.Net.WebServiceProxy);
BlogReadService._staticInstance = new BlogReadService();
BlogReadService.set_path = function(value) {
BlogReadService._staticInstance.set_path(value); }
BlogReadService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return BlogReadService._staticInstance.get_path();}
BlogReadService.set_timeout = function(value) {
BlogReadService._staticInstance.set_timeout(value); }
BlogReadService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return BlogReadService._staticInstance.get_timeout(); }
BlogReadService.set_defaultUserContext = function(value) { 
BlogReadService._staticInstance.set_defaultUserContext(value); }
BlogReadService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return BlogReadService._staticInstance.get_defaultUserContext(); }
BlogReadService.set_defaultSucceededCallback = function(value) { 
 BlogReadService._staticInstance.set_defaultSucceededCallback(value); }
BlogReadService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return BlogReadService._staticInstance.get_defaultSucceededCallback(); }
BlogReadService.set_defaultFailedCallback = function(value) { 
BlogReadService._staticInstance.set_defaultFailedCallback(value); }
BlogReadService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return BlogReadService._staticInstance.get_defaultFailedCallback(); }
BlogReadService.set_path("/Services/BlogReadService.svc");
BlogReadService.AddComment= function(title,body,name,captchaString,onSuccess,onFailed,userContext) {
/// <param name="title" type="String">System.String</param>
/// <param name="body" type="String">System.String</param>
/// <param name="name" type="String">System.String</param>
/// <param name="captchaString" 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>
BlogReadService._staticInstance.AddComment(title,body,name,captchaString,onSuccess,onFailed,userContext); }
BlogReadService.GetComments= function(onSuccess,onFailed,userContext) {
/// <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>
BlogReadService._staticInstance.GetComments(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('DiamondImage');
if (typeof(DiamondImage.Comment) === 'undefined') {
DiamondImage.Comment=gtc("Comment:http://schemas.datacontract.org/2004/07/DiamondImage");
DiamondImage.Comment.registerClass('DiamondImage.Comment');
}

