var Plantation=function() {
Plantation.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Plantation.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Plantation._staticInstance.get_path();},
GetRugs: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(), 'GetRugs',false,{},succeededCallback,failedCallback,userContext); },
GetRugColours: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(), 'GetRugColours',true,{},succeededCallback,failedCallback,userContext); },
GetRugProducts: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(), 'GetRugProducts',true,{},succeededCallback,failedCallback,userContext); },
NewsLetterSignup:function(email,succeededCallback, failedCallback, userContext) {
/// <param name="email" 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(), 'NewsLetterSignup',false,{email:email},succeededCallback,failedCallback,userContext); },
HearOfUs:function(hearOfUs,succeededCallback, failedCallback, userContext) {
/// <param name="hearOfUs" 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(), 'HearOfUs',false,{hearOfUs:hearOfUs},succeededCallback,failedCallback,userContext); },
GetStockists: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(), 'GetStockists',false,{},succeededCallback,failedCallback,userContext); },
SetCollectionPageState:function(state,succeededCallback, failedCallback, userContext) {
/// <param name="state" type="CollectionPageState">CollectionPageState</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(), 'SetCollectionPageState',false,{state:state},succeededCallback,failedCallback,userContext); },
GetCollectionPageState: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(), 'GetCollectionPageState',false,{},succeededCallback,failedCallback,userContext); }}
Plantation.registerClass('Plantation',Sys.Net.WebServiceProxy);
Plantation._staticInstance = new Plantation();
Plantation.set_path = function(value) {
Plantation._staticInstance.set_path(value); }
Plantation.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Plantation._staticInstance.get_path();}
Plantation.set_timeout = function(value) {
Plantation._staticInstance.set_timeout(value); }
Plantation.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Plantation._staticInstance.get_timeout(); }
Plantation.set_defaultUserContext = function(value) { 
Plantation._staticInstance.set_defaultUserContext(value); }
Plantation.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Plantation._staticInstance.get_defaultUserContext(); }
Plantation.set_defaultSucceededCallback = function(value) { 
 Plantation._staticInstance.set_defaultSucceededCallback(value); }
Plantation.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Plantation._staticInstance.get_defaultSucceededCallback(); }
Plantation.set_defaultFailedCallback = function(value) { 
Plantation._staticInstance.set_defaultFailedCallback(value); }
Plantation.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Plantation._staticInstance.get_defaultFailedCallback(); }
Plantation.set_path("/WebServices/Plantation.asmx");
Plantation.GetRugs= 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>
Plantation._staticInstance.GetRugs(onSuccess,onFailed,userContext); }
Plantation.GetRugColours= 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>
Plantation._staticInstance.GetRugColours(onSuccess,onFailed,userContext); }
Plantation.GetRugProducts= 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>
Plantation._staticInstance.GetRugProducts(onSuccess,onFailed,userContext); }
Plantation.NewsLetterSignup= function(email,onSuccess,onFailed,userContext) {
/// <param name="email" 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>
Plantation._staticInstance.NewsLetterSignup(email,onSuccess,onFailed,userContext); }
Plantation.HearOfUs= function(hearOfUs,onSuccess,onFailed,userContext) {
/// <param name="hearOfUs" 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>
Plantation._staticInstance.HearOfUs(hearOfUs,onSuccess,onFailed,userContext); }
Plantation.GetStockists= 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>
Plantation._staticInstance.GetStockists(onSuccess,onFailed,userContext); }
Plantation.SetCollectionPageState= function(state,onSuccess,onFailed,userContext) {
/// <param name="state" type="CollectionPageState">CollectionPageState</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>
Plantation._staticInstance.SetCollectionPageState(state,onSuccess,onFailed,userContext); }
Plantation.GetCollectionPageState= 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>
Plantation._staticInstance.GetCollectionPageState(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Rug) === 'undefined') {
var Rug=gtc("Rug");
Rug.registerClass('Rug');
}
if (typeof(RugColour) === 'undefined') {
var RugColour=gtc("RugColour");
RugColour.registerClass('RugColour');
}
if (typeof(RugProduct) === 'undefined') {
var RugProduct=gtc("RugProduct");
RugProduct.registerClass('RugProduct');
}
if (typeof(Stockist) === 'undefined') {
var Stockist=gtc("Stockist");
Stockist.registerClass('Stockist');
}
if (typeof(CollectionPageState) === 'undefined') {
var CollectionPageState=gtc("CollectionPageState");
CollectionPageState.registerClass('CollectionPageState');
}
