public GroupBalance GetGroupBalance(UUID groupID)
{
object remoteValue = DoRemoteByURL("CurrencyServerURI", groupID);
if (remoteValue != null || m_doRemoteOnly)
return (GroupBalance) remoteValue;
GroupBalance gb = new GroupBalance {
GroupFee = 0,
LandFee = 0,
ObjectFee = 0,
ParcelDirectoryFee = 0,
TotalTierCredits = 0,
TotalTierDebit = 0,
Balance = 0,
StartingDate = DateTime.UtcNow
};
Dictionary<string, object> where = new Dictionary<string, object> (1);
where ["GroupID"] = groupID;
List<string> queryResults = GD.Query (new [] { "*" }, _GROUPREALM,
new QueryFilter { andFilters = where }, null, null, null);
if (queryResults.Count == 0)
{
GroupCurrencyCreate(groupID);
return gb;
}
return ParseGroupBalance(queryResults);
}