Exemplo n.º 1
0
		public static void SetCurrentUsrSpottedInPhoto(Int32 photoK, Boolean isInPhoto, ServiceStringArrayWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["photoK"] = photoK;
			p["isInPhoto"] = isInPhoto;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"SetCurrentUsrSpottedInPhoto",
				"/WebServices/Controls/PhotoControl/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((String[])((Dictionary<string, object>)data)["d"], userContext, "SetCurrentUsrSpottedInPhoto");
				};
			jQuery.Ajax(o);
		}
		public static void GetPreviewHtml(Int32 previewType, String rawCommentHtml, Boolean formatting, ServiceStringArrayWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["previewType"] = previewType;
			p["rawCommentHtml"] = rawCommentHtml;
			p["formatting"] = formatting;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"GetPreviewHtml",
				"/WebServices/Controls/CommentsDisplay/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((String[])((Dictionary<string, object>)data)["d"], userContext, "GetPreviewHtml");
				};
			jQuery.Ajax(o);
		}