Type.registerNamespace('Photo.Web.ScriptServices.Gallery');
Photo.Web.ScriptServices.Gallery.CommentService=function() {
Photo.Web.ScriptServices.Gallery.CommentService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Photo.Web.ScriptServices.Gallery.CommentService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Photo.Web.ScriptServices.Gallery.CommentService._staticInstance.get_path();},
SaveComment:function(imageId,commentText,usernameText,succeededCallback, failedCallback, userContext) {
/// <param name="imageId" type="String">System.Guid</param>
/// <param name="commentText" type="String">System.String</param>
/// <param name="usernameText" 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(), 'SaveComment',false,{imageId:imageId,commentText:commentText,usernameText:usernameText},succeededCallback,failedCallback,userContext); },
DeleteComment:function(commentId,succeededCallback, failedCallback, userContext) {
/// <param name="commentId" type="String">System.Guid</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(), 'DeleteComment',false,{commentId:commentId},succeededCallback,failedCallback,userContext); },
AnswerComment:function(commentId,answer,succeededCallback, failedCallback, userContext) {
/// <param name="commentId" type="String">System.Guid</param>
/// <param name="answer" 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(), 'AnswerComment',false,{commentId:commentId,answer:answer},succeededCallback,failedCallback,userContext); }}
Photo.Web.ScriptServices.Gallery.CommentService.registerClass('Photo.Web.ScriptServices.Gallery.CommentService',Sys.Net.WebServiceProxy);
Photo.Web.ScriptServices.Gallery.CommentService._staticInstance = new Photo.Web.ScriptServices.Gallery.CommentService();
Photo.Web.ScriptServices.Gallery.CommentService.set_path = function(value) {
Photo.Web.ScriptServices.Gallery.CommentService._staticInstance.set_path(value); }
Photo.Web.ScriptServices.Gallery.CommentService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Photo.Web.ScriptServices.Gallery.CommentService._staticInstance.get_path();}
Photo.Web.ScriptServices.Gallery.CommentService.set_timeout = function(value) {
Photo.Web.ScriptServices.Gallery.CommentService._staticInstance.set_timeout(value); }
Photo.Web.ScriptServices.Gallery.CommentService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Photo.Web.ScriptServices.Gallery.CommentService._staticInstance.get_timeout(); }
Photo.Web.ScriptServices.Gallery.CommentService.set_defaultUserContext = function(value) { 
Photo.Web.ScriptServices.Gallery.CommentService._staticInstance.set_defaultUserContext(value); }
Photo.Web.ScriptServices.Gallery.CommentService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Photo.Web.ScriptServices.Gallery.CommentService._staticInstance.get_defaultUserContext(); }
Photo.Web.ScriptServices.Gallery.CommentService.set_defaultSucceededCallback = function(value) { 
 Photo.Web.ScriptServices.Gallery.CommentService._staticInstance.set_defaultSucceededCallback(value); }
Photo.Web.ScriptServices.Gallery.CommentService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Photo.Web.ScriptServices.Gallery.CommentService._staticInstance.get_defaultSucceededCallback(); }
Photo.Web.ScriptServices.Gallery.CommentService.set_defaultFailedCallback = function(value) { 
Photo.Web.ScriptServices.Gallery.CommentService._staticInstance.set_defaultFailedCallback(value); }
Photo.Web.ScriptServices.Gallery.CommentService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Photo.Web.ScriptServices.Gallery.CommentService._staticInstance.get_defaultFailedCallback(); }
Photo.Web.ScriptServices.Gallery.CommentService.set_path("/ScriptServices/Gallery/CommentService.asmx");
Photo.Web.ScriptServices.Gallery.CommentService.SaveComment= function(imageId,commentText,usernameText,onSuccess,onFailed,userContext) {
/// <param name="imageId" type="String">System.Guid</param>
/// <param name="commentText" type="String">System.String</param>
/// <param name="usernameText" 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>
Photo.Web.ScriptServices.Gallery.CommentService._staticInstance.SaveComment(imageId,commentText,usernameText,onSuccess,onFailed,userContext); }
Photo.Web.ScriptServices.Gallery.CommentService.DeleteComment= function(commentId,onSuccess,onFailed,userContext) {
/// <param name="commentId" type="String">System.Guid</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>
Photo.Web.ScriptServices.Gallery.CommentService._staticInstance.DeleteComment(commentId,onSuccess,onFailed,userContext); }
Photo.Web.ScriptServices.Gallery.CommentService.AnswerComment= function(commentId,answer,onSuccess,onFailed,userContext) {
/// <param name="commentId" type="String">System.Guid</param>
/// <param name="answer" 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>
Photo.Web.ScriptServices.Gallery.CommentService._staticInstance.AnswerComment(commentId,answer,onSuccess,onFailed,userContext); }
