Beispiel #1
0
        byte[] UpdateAbuseReport(Dictionary <string, object> request)
        {
            AbuseReport ar = new AbuseReport(request);

            m_AbuseReportsService.UpdateAbuseReport(ar, request["Password"].ToString());
            //m_log.DebugFormat("[ABUSEREPORTS HANDLER]: neighbours for region {0}: {1}", regionID, rinfos.Count);

            return(SuccessResult());
        }
Beispiel #2
0
        byte[] AbuseReportSaveNotes(OSDMap map)
        {
            OSDMap        resp = new OSDMap();
            IAbuseReports ar   = m_registry.RequestModuleInterface <IAbuseReports>();
            AbuseReport   tar  = ar.GetAbuseReport(map["Number"].AsInteger(), map["WebPassword"].AsString());

            tar.Notes = map["Notes"].ToString();
            ar.UpdateAbuseReport(tar, map["WebPassword"].AsString());
            resp["Finished"] = OSD.FromBoolean(true);
            string       xmlString = OSDParser.SerializeJsonString(resp);
            UTF8Encoding encoding  = new UTF8Encoding();

            return(encoding.GetBytes(xmlString));
        }