public AbuseReport GetAbuseReport(int Number, string Password) { try { Dictionary <string, object> send = new Dictionary <string, object> { { "Password", Password }, { "METHOD", "GetAbuseReport" } }; List <string> m_ServerURIs = m_registry.RequestModuleInterface <IConfigurationService>().FindValueOf("AbuseReportsServerURI"); AbuseReport ar = new AbuseReport(); ar.FromKVP(WebUtils.ParseXmlResponse(SynchronousRestFormsRequester.MakeRequest("POST", m_ServerURIs[ 0], WebUtils. BuildQueryString (send)))); return(ar); } catch (Exception e) { MainConsole.Instance.DebugFormat("[ABUSEREPORT CONNECTOR]: Exception when contacting friends server: {0}", e.Message); return(null); } }
private byte[] UpdateAbuseReport(Dictionary <string, object> request) { AbuseReport ar = new AbuseReport(); ar.FromKVP(request); m_AbuseReportsService.UpdateAbuseReport(ar, request["Password"].ToString()); //MainConsole.Instance.DebugFormat("[ABUSEREPORTS HANDLER]: neighbours for region {0}: {1}", regionID, rinfos.Count); return(SuccessResult()); }