Type.registerNamespace('RMBB');
RMBB.Services=function() {
RMBB.Services.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
RMBB.Services.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return RMBB.Services._staticInstance.get_path();},
AddEditEvent:function(RMBBEvent,succeededCallback, failedCallback, userContext) {
/// <param name="RMBBEvent" type="RMBB.Event">RMBB.Event</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(), 'AddEditEvent',false,{RMBBEvent:RMBBEvent},succeededCallback,failedCallback,userContext); },
DeleteEvent:function(eventID,succeededCallback, failedCallback, userContext) {
/// <param name="eventID" type="Number">System.Int32</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(), 'DeleteEvent',false,{eventID:eventID},succeededCallback,failedCallback,userContext); },
AddEditLocation:function(RMBBLocation,intEventIDToAssociate,intTrailIDToAssociate,succeededCallback, failedCallback, userContext) {
/// <param name="RMBBLocation" type="RMBB.Location">RMBB.Location</param>
/// <param name="intEventIDToAssociate" type="Number">System.Int32</param>
/// <param name="intTrailIDToAssociate" type="Number">System.Int32</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(), 'AddEditLocation',false,{RMBBLocation:RMBBLocation,intEventIDToAssociate:intEventIDToAssociate,intTrailIDToAssociate:intTrailIDToAssociate},succeededCallback,failedCallback,userContext); },
DeleteLocation:function(locID,succeededCallback, failedCallback, userContext) {
/// <param name="locID" type="Number">System.Int32</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(), 'DeleteLocation',false,{locID:locID},succeededCallback,failedCallback,userContext); },
EditText:function(intFieldID,newtext,succeededCallback, failedCallback, userContext) {
/// <param name="intFieldID" type="Number">System.Int32</param>
/// <param name="newtext" 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(), 'EditText',false,{intFieldID:intFieldID,newtext:newtext},succeededCallback,failedCallback,userContext); },
PhotoPage:function(intPage,intYear,intLocation,intEventID,intTrailID,succeededCallback, failedCallback, userContext) {
/// <param name="intPage" type="Number">System.Int32</param>
/// <param name="intYear" type="Number">System.Int32</param>
/// <param name="intLocation" type="Number">System.Int32</param>
/// <param name="intEventID" type="Number">System.Int32</param>
/// <param name="intTrailID" type="Number">System.Int32</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(), 'PhotoPage',false,{intPage:intPage,intYear:intYear,intLocation:intLocation,intEventID:intEventID,intTrailID:intTrailID},succeededCallback,failedCallback,userContext); },
AddUser:function(strUserName,strFirstName,strLastName,strEMail,strPassword,succeededCallback, failedCallback, userContext) {
/// <param name="strUserName" type="String">System.String</param>
/// <param name="strFirstName" type="String">System.String</param>
/// <param name="strLastName" type="String">System.String</param>
/// <param name="strEMail" type="String">System.String</param>
/// <param name="strPassword" 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(), 'AddUser',false,{strUserName:strUserName,strFirstName:strFirstName,strLastName:strLastName,strEMail:strEMail,strPassword:strPassword},succeededCallback,failedCallback,userContext); },
DeletePhoto:function(intPhotoFileID,succeededCallback, failedCallback, userContext) {
/// <param name="intPhotoFileID" type="Number">System.Int32</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(), 'DeletePhoto',false,{intPhotoFileID:intPhotoFileID},succeededCallback,failedCallback,userContext); },
DeleteNewsletter:function(intNewsletterID,succeededCallback, failedCallback, userContext) {
/// <param name="intNewsletterID" type="Number">System.Int32</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(), 'DeleteNewsletter',false,{intNewsletterID:intNewsletterID},succeededCallback,failedCallback,userContext); },
AddEditTrail:function(RMBBTrail,intEventIDToAssociate,succeededCallback, failedCallback, userContext) {
/// <param name="RMBBTrail" type="RMBB.Trail">RMBB.Trail</param>
/// <param name="intEventIDToAssociate" type="Number">System.Int32</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(), 'AddEditTrail',false,{RMBBTrail:RMBBTrail,intEventIDToAssociate:intEventIDToAssociate},succeededCallback,failedCallback,userContext); },
CreateGPSCoordinate: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(), 'CreateGPSCoordinate',false,{},succeededCallback,failedCallback,userContext); },
CreateGPSCoordinatePart: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(), 'CreateGPSCoordinatePart',false,{},succeededCallback,failedCallback,userContext); },
GetFileComments:function(intFileID,succeededCallback, failedCallback, userContext) {
/// <param name="intFileID" type="Number">System.Int32</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(), 'GetFileComments',false,{intFileID:intFileID},succeededCallback,failedCallback,userContext); }}
RMBB.Services.registerClass('RMBB.Services',Sys.Net.WebServiceProxy);
RMBB.Services._staticInstance = new RMBB.Services();
RMBB.Services.set_path = function(value) {
RMBB.Services._staticInstance.set_path(value); }
RMBB.Services.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return RMBB.Services._staticInstance.get_path();}
RMBB.Services.set_timeout = function(value) {
RMBB.Services._staticInstance.set_timeout(value); }
RMBB.Services.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return RMBB.Services._staticInstance.get_timeout(); }
RMBB.Services.set_defaultUserContext = function(value) { 
RMBB.Services._staticInstance.set_defaultUserContext(value); }
RMBB.Services.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return RMBB.Services._staticInstance.get_defaultUserContext(); }
RMBB.Services.set_defaultSucceededCallback = function(value) { 
 RMBB.Services._staticInstance.set_defaultSucceededCallback(value); }
RMBB.Services.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return RMBB.Services._staticInstance.get_defaultSucceededCallback(); }
RMBB.Services.set_defaultFailedCallback = function(value) { 
RMBB.Services._staticInstance.set_defaultFailedCallback(value); }
RMBB.Services.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return RMBB.Services._staticInstance.get_defaultFailedCallback(); }
RMBB.Services.set_enableJsonp = function(value) { RMBB.Services._staticInstance.set_enableJsonp(value); }
RMBB.Services.get_enableJsonp = function() { 
/// <value type="Boolean">Specifies whether the service supports JSONP for cross domain calling.</value>
return RMBB.Services._staticInstance.get_enableJsonp(); }
RMBB.Services.set_jsonpCallbackParameter = function(value) { RMBB.Services._staticInstance.set_jsonpCallbackParameter(value); }
RMBB.Services.get_jsonpCallbackParameter = function() { 
/// <value type="String">Specifies the parameter name that contains the callback function name for a JSONP request.</value>
return RMBB.Services._staticInstance.get_jsonpCallbackParameter(); }
RMBB.Services.set_path("/Services.asmx");
RMBB.Services.AddEditEvent= function(RMBBEvent,onSuccess,onFailed,userContext) {
/// <param name="RMBBEvent" type="RMBB.Event">RMBB.Event</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>
RMBB.Services._staticInstance.AddEditEvent(RMBBEvent,onSuccess,onFailed,userContext); }
RMBB.Services.DeleteEvent= function(eventID,onSuccess,onFailed,userContext) {
/// <param name="eventID" type="Number">System.Int32</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>
RMBB.Services._staticInstance.DeleteEvent(eventID,onSuccess,onFailed,userContext); }
RMBB.Services.AddEditLocation= function(RMBBLocation,intEventIDToAssociate,intTrailIDToAssociate,onSuccess,onFailed,userContext) {
/// <param name="RMBBLocation" type="RMBB.Location">RMBB.Location</param>
/// <param name="intEventIDToAssociate" type="Number">System.Int32</param>
/// <param name="intTrailIDToAssociate" type="Number">System.Int32</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>
RMBB.Services._staticInstance.AddEditLocation(RMBBLocation,intEventIDToAssociate,intTrailIDToAssociate,onSuccess,onFailed,userContext); }
RMBB.Services.DeleteLocation= function(locID,onSuccess,onFailed,userContext) {
/// <param name="locID" type="Number">System.Int32</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>
RMBB.Services._staticInstance.DeleteLocation(locID,onSuccess,onFailed,userContext); }
RMBB.Services.EditText= function(intFieldID,newtext,onSuccess,onFailed,userContext) {
/// <param name="intFieldID" type="Number">System.Int32</param>
/// <param name="newtext" 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>
RMBB.Services._staticInstance.EditText(intFieldID,newtext,onSuccess,onFailed,userContext); }
RMBB.Services.PhotoPage= function(intPage,intYear,intLocation,intEventID,intTrailID,onSuccess,onFailed,userContext) {
/// <param name="intPage" type="Number">System.Int32</param>
/// <param name="intYear" type="Number">System.Int32</param>
/// <param name="intLocation" type="Number">System.Int32</param>
/// <param name="intEventID" type="Number">System.Int32</param>
/// <param name="intTrailID" type="Number">System.Int32</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>
RMBB.Services._staticInstance.PhotoPage(intPage,intYear,intLocation,intEventID,intTrailID,onSuccess,onFailed,userContext); }
RMBB.Services.AddUser= function(strUserName,strFirstName,strLastName,strEMail,strPassword,onSuccess,onFailed,userContext) {
/// <param name="strUserName" type="String">System.String</param>
/// <param name="strFirstName" type="String">System.String</param>
/// <param name="strLastName" type="String">System.String</param>
/// <param name="strEMail" type="String">System.String</param>
/// <param name="strPassword" 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>
RMBB.Services._staticInstance.AddUser(strUserName,strFirstName,strLastName,strEMail,strPassword,onSuccess,onFailed,userContext); }
RMBB.Services.DeletePhoto= function(intPhotoFileID,onSuccess,onFailed,userContext) {
/// <param name="intPhotoFileID" type="Number">System.Int32</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>
RMBB.Services._staticInstance.DeletePhoto(intPhotoFileID,onSuccess,onFailed,userContext); }
RMBB.Services.DeleteNewsletter= function(intNewsletterID,onSuccess,onFailed,userContext) {
/// <param name="intNewsletterID" type="Number">System.Int32</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>
RMBB.Services._staticInstance.DeleteNewsletter(intNewsletterID,onSuccess,onFailed,userContext); }
RMBB.Services.AddEditTrail= function(RMBBTrail,intEventIDToAssociate,onSuccess,onFailed,userContext) {
/// <param name="RMBBTrail" type="RMBB.Trail">RMBB.Trail</param>
/// <param name="intEventIDToAssociate" type="Number">System.Int32</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>
RMBB.Services._staticInstance.AddEditTrail(RMBBTrail,intEventIDToAssociate,onSuccess,onFailed,userContext); }
RMBB.Services.CreateGPSCoordinate= 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>
RMBB.Services._staticInstance.CreateGPSCoordinate(onSuccess,onFailed,userContext); }
RMBB.Services.CreateGPSCoordinatePart= 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>
RMBB.Services._staticInstance.CreateGPSCoordinatePart(onSuccess,onFailed,userContext); }
RMBB.Services.GetFileComments= function(intFileID,onSuccess,onFailed,userContext) {
/// <param name="intFileID" type="Number">System.Int32</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>
RMBB.Services._staticInstance.GetFileComments(intFileID,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(RMBB.Event) === 'undefined') {
RMBB.Event=gtc("RMBB.Event");
RMBB.Event.registerClass('RMBB.Event');
}
if (typeof(RMBB.Location) === 'undefined') {
RMBB.Location=gtc("RMBB.Location");
RMBB.Location.registerClass('RMBB.Location');
}
if (typeof(RMBB.Trail) === 'undefined') {
RMBB.Trail=gtc("RMBB.Trail");
RMBB.Trail.registerClass('RMBB.Trail');
}
if (typeof(RMBB.GPSCoordinate) === 'undefined') {
RMBB.GPSCoordinate=gtc("RMBB.GPSCoordinate");
RMBB.GPSCoordinate.registerClass('RMBB.GPSCoordinate');
}
if (typeof(RMBB.GPSCoordinatePart) === 'undefined') {
RMBB.GPSCoordinatePart=gtc("RMBB.GPSCoordinatePart");
RMBB.GPSCoordinatePart.registerClass('RMBB.GPSCoordinatePart');
}

