Type.registerNamespace('IslamnaEnglish._services');
IslamnaEnglish._services.CommentManager=function() {
IslamnaEnglish._services.CommentManager.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
IslamnaEnglish._services.CommentManager.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return IslamnaEnglish._services.CommentManager._staticInstance.get_path();},
Savecommentator:function(person,succeededCallback, failedCallback, userContext) {
/// <param name="person" type="IslamnaEnglish.Model.Person">IslamnaEnglish.Model.Person</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(), 'Savecommentator',false,{person:person},succeededCallback,failedCallback,userContext); },
SaveComment:function(comment,succeededCallback, failedCallback, userContext) {
/// <param name="comment" type="IslamnaEnglish.Model.Comment">IslamnaEnglish.Model.Comment</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,{comment:comment},succeededCallback,failedCallback,userContext); },
ApproveComment:function(commentId,approve,succeededCallback, failedCallback, userContext) {
/// <param name="commentId" type="Number">System.Int32</param>
/// <param name="approve" type="Boolean">System.Boolean</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(), 'ApproveComment',false,{commentId:commentId,approve:approve},succeededCallback,failedCallback,userContext); }}
IslamnaEnglish._services.CommentManager.registerClass('IslamnaEnglish._services.CommentManager',Sys.Net.WebServiceProxy);
IslamnaEnglish._services.CommentManager._staticInstance = new IslamnaEnglish._services.CommentManager();
IslamnaEnglish._services.CommentManager.set_path = function(value) {
IslamnaEnglish._services.CommentManager._staticInstance.set_path(value); }
IslamnaEnglish._services.CommentManager.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return IslamnaEnglish._services.CommentManager._staticInstance.get_path();}
IslamnaEnglish._services.CommentManager.set_timeout = function(value) {
IslamnaEnglish._services.CommentManager._staticInstance.set_timeout(value); }
IslamnaEnglish._services.CommentManager.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return IslamnaEnglish._services.CommentManager._staticInstance.get_timeout(); }
IslamnaEnglish._services.CommentManager.set_defaultUserContext = function(value) { 
IslamnaEnglish._services.CommentManager._staticInstance.set_defaultUserContext(value); }
IslamnaEnglish._services.CommentManager.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return IslamnaEnglish._services.CommentManager._staticInstance.get_defaultUserContext(); }
IslamnaEnglish._services.CommentManager.set_defaultSucceededCallback = function(value) { 
 IslamnaEnglish._services.CommentManager._staticInstance.set_defaultSucceededCallback(value); }
IslamnaEnglish._services.CommentManager.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return IslamnaEnglish._services.CommentManager._staticInstance.get_defaultSucceededCallback(); }
IslamnaEnglish._services.CommentManager.set_defaultFailedCallback = function(value) { 
IslamnaEnglish._services.CommentManager._staticInstance.set_defaultFailedCallback(value); }
IslamnaEnglish._services.CommentManager.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return IslamnaEnglish._services.CommentManager._staticInstance.get_defaultFailedCallback(); }
IslamnaEnglish._services.CommentManager.set_path("/_services/CommentManager.asmx");
IslamnaEnglish._services.CommentManager.Savecommentator= function(person,onSuccess,onFailed,userContext) {
/// <param name="person" type="IslamnaEnglish.Model.Person">IslamnaEnglish.Model.Person</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>
IslamnaEnglish._services.CommentManager._staticInstance.Savecommentator(person,onSuccess,onFailed,userContext); }
IslamnaEnglish._services.CommentManager.SaveComment= function(comment,onSuccess,onFailed,userContext) {
/// <param name="comment" type="IslamnaEnglish.Model.Comment">IslamnaEnglish.Model.Comment</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>
IslamnaEnglish._services.CommentManager._staticInstance.SaveComment(comment,onSuccess,onFailed,userContext); }
IslamnaEnglish._services.CommentManager.ApproveComment= function(commentId,approve,onSuccess,onFailed,userContext) {
/// <param name="commentId" type="Number">System.Int32</param>
/// <param name="approve" type="Boolean">System.Boolean</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>
IslamnaEnglish._services.CommentManager._staticInstance.ApproveComment(commentId,approve,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('IslamnaEnglish.Model');
if (typeof(IslamnaEnglish.Model.Person) === 'undefined') {
IslamnaEnglish.Model.Person=gtc("IslamnaEnglish.Model.Person");
IslamnaEnglish.Model.Person.registerClass('IslamnaEnglish.Model.Person');
}
if (typeof(IslamnaEnglish.Model.Comment) === 'undefined') {
IslamnaEnglish.Model.Comment=gtc("IslamnaEnglish.Model.Comment");
IslamnaEnglish.Model.Comment.registerClass('IslamnaEnglish.Model.Comment');
}
