public virtual void Handle(GameClient session, ClientMessage message) { if (session.GetHabbo() != null) { BullyReport report = Skylight.GetGame().GetGuideManager().GetBullyReportByReporterID(session.GetHabbo().ID); if (report != null) { session.SendMessage(new BullyReportStartComposerHandler(BullyReportStartCode.OngoingCase, report)); } else { if (!Skylight.GetGame().GetGuideManager().GetHasBullyReportTimeout(session.GetHabbo().ID)) { if (!Skylight.GetGame().GetGuideManager().GetHasBullyReportAbuseTimeout(session.GetHabbo().ID)) { session.SendMessage(new BullyReportStartComposerHandler(BullyReportStartCode.Start)); } else { session.SendMessage(new BullyReportStartComposerHandler(BullyReportStartCode.Blocked)); } } else { session.SendMessage(new BullyReportStartComposerHandler(BullyReportStartCode.TooRecent)); } } } }
public BullyReportStartComposerHandler(BullyReportStartCode code, BullyReport report = null) { this.Code = code; this.Report = report; }
public BullyReportAttachedComposerHandler(BullyReport report) { this.Report = report; }