/// <summary> /// Gets the event by ID. /// </summary> protected void GetEventByID(ConnectedClient client, DataPacket request, out ResponsePacket response) { byte[] buffer = request.Buffer; int index = ArgumentIndex; long eventID = GetInt64(buffer, ref index); int archiveBit = GetByte(buffer, ref index); Event ev = archiveHolder.GetEventByID(eventID, archiveBit); buffer = client.OutBuf; response = new ResponsePacket(request, buffer); index = ArgumentIndex; if (ev == null) { CopyBool(false, buffer, ref index); } else { CopyBool(true, buffer, ref index); CopyEvent(ev, buffer, ref index); } response.BufferLength = index; }
/// <summary> /// Gets the event by ID. /// </summary> public Event GetEventByID(long eventID, int archiveBit) { return(archiveHolder.GetEventByID(eventID, archiveBit)); }
/// <summary> /// Gets the event by ID. /// </summary> public Event GetEventByID(int archiveBit, long eventID) { return(archiveHolder.GetEventByID(archiveBit, eventID)); }