Exemplo n.º 1
0
        private void GroupAccountSummaryHandler(Packet packet, Simulator simulator)
        {
            GroupAccountSummaryReplyPacket summary = (GroupAccountSummaryReplyPacket)packet;

            if (GroupAccountSummaryCallbacks.ContainsKey(summary.AgentData.GroupID))
            {
                GroupAccountSummary account = new GroupAccountSummary();

                account.Balance              = summary.MoneyData.Balance;
                account.CurrentInterval      = summary.MoneyData.CurrentInterval;
                account.GroupTaxCurrent      = summary.MoneyData.GroupTaxCurrent;
                account.GroupTaxEstimate     = summary.MoneyData.GroupTaxEstimate;
                account.IntervalDays         = summary.MoneyData.IntervalDays;
                account.LandTaxCurrent       = summary.MoneyData.LandTaxCurrent;
                account.LandTaxEstimate      = summary.MoneyData.LandTaxEstimate;
                account.LastTaxDate          = Helpers.FieldToString(summary.MoneyData.LastTaxDate);
                account.LightTaxCurrent      = summary.MoneyData.LightTaxCurrent;
                account.LightTaxEstimate     = summary.MoneyData.LightTaxEstimate;
                account.NonExemptMembers     = summary.MoneyData.NonExemptMembers;
                account.ObjectTaxCurrent     = summary.MoneyData.ObjectTaxCurrent;
                account.ObjectTaxEstimate    = summary.MoneyData.ObjectTaxEstimate;
                account.ParcelDirFeeCurrent  = summary.MoneyData.ParcelDirFeeCurrent;
                account.ParcelDirFeeEstimate = summary.MoneyData.ParcelDirFeeEstimate;
                account.StartDate            = Helpers.FieldToString(summary.MoneyData.StartDate);
                account.TaxDate              = Helpers.FieldToString(summary.MoneyData.TaxDate);
                account.TotalCredits         = summary.MoneyData.TotalCredits;
                account.TotalDebits          = summary.MoneyData.TotalDebits;

                GroupAccountSummaryCallbacks[summary.AgentData.GroupID](account);
            }
        }
        private void GroupAccountSummaryHandler(Packet packet, Simulator simulator)
        {
            GroupAccountSummaryReplyPacket summary = (GroupAccountSummaryReplyPacket)packet;

            if (GroupAccountSummaryCallbacks.ContainsKey(summary.AgentData.GroupID))
            {
                GroupAccountSummary account = new GroupAccountSummary();

                account.Balance = summary.MoneyData.Balance;
                account.CurrentInterval = summary.MoneyData.CurrentInterval;
                account.GroupTaxCurrent = summary.MoneyData.GroupTaxCurrent;
                account.GroupTaxEstimate = summary.MoneyData.GroupTaxEstimate;
                account.IntervalDays = summary.MoneyData.IntervalDays;
                account.LandTaxCurrent = summary.MoneyData.LandTaxCurrent;
                account.LandTaxEstimate = summary.MoneyData.LandTaxEstimate;
                account.LastTaxDate = Helpers.FieldToString(summary.MoneyData.LastTaxDate);
                account.LightTaxCurrent = summary.MoneyData.LightTaxCurrent;
                account.LightTaxEstimate = summary.MoneyData.LightTaxEstimate;
                account.NonExemptMembers = summary.MoneyData.NonExemptMembers;
                account.ObjectTaxCurrent = summary.MoneyData.ObjectTaxCurrent;
                account.ObjectTaxEstimate = summary.MoneyData.ObjectTaxEstimate;
                account.ParcelDirFeeCurrent = summary.MoneyData.ParcelDirFeeCurrent;
                account.ParcelDirFeeEstimate = summary.MoneyData.ParcelDirFeeEstimate;
                account.StartDate = Helpers.FieldToString(summary.MoneyData.StartDate);
                account.TaxDate = Helpers.FieldToString(summary.MoneyData.TaxDate);
                account.TotalCredits = summary.MoneyData.TotalCredits;
                account.TotalDebits = summary.MoneyData.TotalDebits;

                GroupAccountSummaryCallbacks[summary.AgentData.GroupID](account);
            }
        }
Exemplo n.º 3
0
        private void GroupAccountSummaryHandler(Packet packet, Simulator simulator)
        {
            if (OnGroupAccountSummary != null)
            {
                GroupAccountSummaryReplyPacket summary = (GroupAccountSummaryReplyPacket)packet;
                GroupAccountSummary account = new GroupAccountSummary();

                account.Balance = summary.MoneyData.Balance;
                account.CurrentInterval = summary.MoneyData.CurrentInterval;
                account.GroupTaxCurrent = summary.MoneyData.GroupTaxCurrent;
                account.GroupTaxEstimate = summary.MoneyData.GroupTaxEstimate;
                account.IntervalDays = summary.MoneyData.IntervalDays;
                account.LandTaxCurrent = summary.MoneyData.LandTaxCurrent;
                account.LandTaxEstimate = summary.MoneyData.LandTaxEstimate;
                account.LastTaxDate = Helpers.FieldToUTF8String(summary.MoneyData.LastTaxDate);
                account.LightTaxCurrent = summary.MoneyData.LightTaxCurrent;
                account.LightTaxEstimate = summary.MoneyData.LightTaxEstimate;
                account.NonExemptMembers = summary.MoneyData.NonExemptMembers;
                account.ObjectTaxCurrent = summary.MoneyData.ObjectTaxCurrent;
                account.ObjectTaxEstimate = summary.MoneyData.ObjectTaxEstimate;
                account.ParcelDirFeeCurrent = summary.MoneyData.ParcelDirFeeCurrent;
                account.ParcelDirFeeEstimate = summary.MoneyData.ParcelDirFeeEstimate;
                account.StartDate = Helpers.FieldToUTF8String(summary.MoneyData.StartDate);
                account.TaxDate = Helpers.FieldToUTF8String(summary.MoneyData.TaxDate);
                account.TotalCredits = summary.MoneyData.TotalCredits;
                account.TotalDebits = summary.MoneyData.TotalDebits;

                try { OnGroupAccountSummary(account); }
                catch (Exception e) { Client.Log(e.ToString(), Helpers.LogLevel.Error); }
            }
        }