/// <summary> /// Process an incoming details of a profile pick /// </summary> private void PickInfoHandler(Packet packet, Simulator simulator) { if (OnPickInfo == null) { return; } PickInfoReplyPacket p = (PickInfoReplyPacket)packet; ProfilePick ret = new ProfilePick(); ret.CreatorID = p.Data.CreatorID; ret.Desc = Helpers.FieldToUTF8String(p.Data.Desc); ret.Enabled = p.Data.Enabled; ret.Name = Helpers.FieldToUTF8String(p.Data.Name); ret.OriginalName = Helpers.FieldToUTF8String(p.Data.OriginalName); ret.ParcelID = p.Data.ParcelID; ret.PickID = p.Data.PickID; ret.PosGlobal = p.Data.PosGlobal; ret.SimName = Helpers.FieldToUTF8String(p.Data.SimName); ret.SnapshotID = p.Data.SnapshotID; ret.SortOrder = p.Data.SortOrder; ret.TopPick = p.Data.TopPick; ret.User = Helpers.FieldToUTF8String(p.Data.User); try { OnPickInfo(ret.PickID, ret); } catch (Exception ex) { Logger.Log(ex.Message, Helpers.LogLevel.Error, Client, ex); } }