// Decompiled with JetBrains decompiler // Type: Server.Handlers.HandleUploadACK // Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null // MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7 // Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe using Raton.Forms.ClientForms.Misc; using Server.Connection; using Stuff; using System; using System.Drawing; using System.Windows.Forms; #nullable disable namespace Server.Handlers; internal class HandleUploadACK { public void Run(SillyClient client, Unpack unpack) { string asString = unpack.GetAsString("DUID"); int chunkIndex = unpack.GetAsInteger("ChunkIndex"); bool isOk = unpack.GetAsBool("isOk"); ratonFIle fileForm = Application.OpenForms["File ID: " + asString] as ratonFIle; if (fileForm == null) return; fileForm.Invoke((Delegate) (() => { if (isOk) fileForm.Status($"Chunk {chunkIndex} received successfully"); else fileForm.Status($"Chunk {chunkIndex} failed to upload"); })); if (isOk) Program.form2.Dispatcher.Invoke((Action) (() => Program.form2.AddSuccessLog((object) $"Client {client.uid} received chunk {chunkIndex} of {fileForm.FileName}", (object) Color.Green))); else Program.form2.Dispatcher.Invoke((Action) (() => Program.form2.AddErrorLog((object) $"Client {client.uid} failed chunk {chunkIndex} of {fileForm.FileName}", (object) Color.Red))); } }