Universe.Modules.Currency.BaseCurrencyConnector.GetTransactionHistory C# (CSharp) Method

GetTransactionHistory() private method

private GetTransactionHistory ( UUID toAgentID, UUID fromAgentID, System.DateTime dateStart, System.DateTime dateEnd, uint start, uint count ) : List
toAgentID UUID
fromAgentID UUID
dateStart System.DateTime
dateEnd System.DateTime
start uint
count uint
return List
        public List<AgentTransfer> GetTransactionHistory(UUID toAgentID, UUID fromAgentID, DateTime dateStart, DateTime dateEnd, uint? start, uint? count)
        {
            if (m_doRemoteOnly) {
                object remoteValue = DoRemoteByURL ("CurrencyServerURI", toAgentID, fromAgentID, dateStart, dateEnd, start, count);
                return remoteValue != null ? (List<AgentTransfer>)remoteValue : new List<AgentTransfer> ();
            }

            QueryFilter filter = new QueryFilter();

            if (toAgentID != UUID.Zero)
                filter.andFilters["ToPrincipalID"] = toAgentID;
            if (fromAgentID != UUID.Zero)
                filter.andFilters["FromPrincipalID"] = fromAgentID;

            // back to UTC please...
            dateStart = dateStart.ToUniversalTime ();
            dateEnd = dateEnd.ToUniversalTime ();

            filter.andGreaterThanEqFilters["Created"] = Utils.DateTimeToUnixTime(dateStart);    // from...
            filter.andLessThanEqFilters["Created"] = Utils.DateTimeToUnixTime(dateEnd);         //...to

            Dictionary<string, bool> sort = new Dictionary<string, bool>(1);
            sort["Created"] = false;        // descending order
            //sort["FromName"] = true;

            List<string> query = GD.Query (new string[] { "*" }, _REALMHISTORY, filter, sort, start, count);

            return ParseTransferQuery(query);
        }

Same methods

BaseCurrencyConnector::GetTransactionHistory ( System.DateTime dateStart, System.DateTime dateEnd, uint start, uint count ) : List
BaseCurrencyConnector::GetTransactionHistory ( UUID toAgentID, UUID fromAgentID, int period, string periodType ) : List
BaseCurrencyConnector::GetTransactionHistory ( UUID toAgentID, int period, string periodType ) : List
BaseCurrencyConnector::GetTransactionHistory ( int period, string periodType, uint start, uint count ) : List

Usage Example

Example #1
0
 public List <AgentTransfer> GetTransactionHistory(UUID toAgentID, UUID fromAgentID, DateTime dateStart, DateTime dateEnd, uint?start, uint?count)
 {
     return(m_connector.GetTransactionHistory(toAgentID, fromAgentID, dateStart, dateEnd, start, count));
 }