C# Class Universe.Modules.Currency.ScheduledPayments

Inheritance: IService, IScheduledMoneyModule
Show file Open project: Virtual-Universe/Virtual-Universe

Public Properties

Property Type Description
eventManager Universe.Framework.Services.ClassHelpers.Other.UniverseEventManager

Public Methods

Method Description
AddCommands ( ) : void
Charge ( UUID agentID, int amount, string description, TransactionType transType, string identifer, bool chargeImmediately, bool runOnce ) : bool
FinishedStartup ( ) : void
FireScheduleEvent ( SchedulerItem I, System.DateTime nextPayTime ) : void
GetGroupPaytime ( int minsOffset ) : System.DateTime

Gets the date and time for the next group charges/dividend payment.

GetStipendPaytime ( int minsOffset ) : System.DateTime

Gets the date and time for the next stipend payment.

GroupPaymentsInfo ( ) : void
Initialize ( IConfigSource config, IRegistryCore registry ) : void
InitializeScheduleTimer ( ) : void
ProccessScheduledPayments ( ) : void
ProcessGroupDividends ( ) : void
ProcessGroupLiability ( ) : void
ProcessStipendPayments ( ) : void
RemoveDirFeeScheduledCharge ( string identifier ) : void
RemoveFromScheduledCharge ( string identifier ) : void
ScheduledPaymentsInfo ( ) : void
SchedulerTimerElapsed ( object sender, System.Timers.ElapsedEventArgs elapsedEventArgs ) : void
SetSchedTimer ( int seconds ) : void
Start ( IConfigSource config, IRegistryCore registry ) : void
StipendInfo ( ) : void
getStipendConfig ( ) : void

Protected Methods

Method Description
HandleGrouppayDisable ( IScene scene, string cmd ) : void
HandleGrouppayEnable ( IScene scene, string cmd ) : void
HandleGrouppayInfo ( IScene scene, string cmd ) : void
HandleGrouppayPayDividends ( IScene scene, string cmd ) : void
HandleGrouppayPayNow ( IScene scene, string cmd ) : void
HandleScheduledPayInfo ( IScene scene, string cmd ) : void
HandleScheduledPayNow ( IScene scene, string cmd ) : void
HandleShowSchedulerTick ( IScene scene, string cmd ) : void
HandleStipendDisable ( IScene scene, string cmd ) : void
HandleStipendEnable ( IScene scene, string cmd ) : void
HandleStipendInfo ( IScene scene, string cmd ) : void
HandleStipendPayNow ( IScene scene, string cmd ) : void
HandleStipendReset ( IScene scene, string cmd ) : void

Private Methods

Method Description
ChargeNext ( string functionName, object parameters ) : object
CheckWhetherUserShouldPay ( UUID agentID, string text ) : bool
ElapsedTime ( System.TimeSpan elapsed ) : string
PayDayOfWeek ( string payday ) : int

Convert day to DdoyOfWeek number.

PaymentCycleDays ( ) : int

Calculate the number of days between payments.

Method Details

AddCommands() public method

public AddCommands ( ) : void
return void

Charge() public method

public Charge ( UUID agentID, int amount, string description, TransactionType transType, string identifer, bool chargeImmediately, bool runOnce ) : bool
agentID UUID
amount int
description string
transType TransactionType
identifer string
chargeImmediately bool
runOnce bool
return bool

FinishedStartup() public method

public FinishedStartup ( ) : void
return void

FireScheduleEvent() public method

public FireScheduleEvent ( SchedulerItem I, System.DateTime nextPayTime ) : void
I Universe.Framework.Utilities.SchedulerItem
nextPayTime System.DateTime
return void

GetGroupPaytime() public method

Gets the date and time for the next group charges/dividend payment.
public GetGroupPaytime ( int minsOffset ) : System.DateTime
minsOffset int
return System.DateTime

GetStipendPaytime() public method

Gets the date and time for the next stipend payment.
public GetStipendPaytime ( int minsOffset ) : System.DateTime
minsOffset int
return System.DateTime

GroupPaymentsInfo() public method

public GroupPaymentsInfo ( ) : void
return void

HandleGrouppayDisable() protected method

protected HandleGrouppayDisable ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

HandleGrouppayEnable() protected method

protected HandleGrouppayEnable ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

HandleGrouppayInfo() protected method

protected HandleGrouppayInfo ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

HandleGrouppayPayDividends() protected method

protected HandleGrouppayPayDividends ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

HandleGrouppayPayNow() protected method

protected HandleGrouppayPayNow ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

HandleScheduledPayInfo() protected method

protected HandleScheduledPayInfo ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

HandleScheduledPayNow() protected method

protected HandleScheduledPayNow ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

HandleShowSchedulerTick() protected method

protected HandleShowSchedulerTick ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

HandleStipendDisable() protected method

protected HandleStipendDisable ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

HandleStipendEnable() protected method

protected HandleStipendEnable ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

HandleStipendInfo() protected method

protected HandleStipendInfo ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

HandleStipendPayNow() protected method

protected HandleStipendPayNow ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

HandleStipendReset() protected method

protected HandleStipendReset ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

Initialize() public method

public Initialize ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

InitializeScheduleTimer() public method

public InitializeScheduleTimer ( ) : void
return void

ProccessScheduledPayments() public method

public ProccessScheduledPayments ( ) : void
return void

ProcessGroupDividends() public method

public ProcessGroupDividends ( ) : void
return void

ProcessGroupLiability() public method

public ProcessGroupLiability ( ) : void
return void

ProcessStipendPayments() public method

public ProcessStipendPayments ( ) : void
return void

RemoveDirFeeScheduledCharge() public method

public RemoveDirFeeScheduledCharge ( string identifier ) : void
identifier string
return void

RemoveFromScheduledCharge() public method

public RemoveFromScheduledCharge ( string identifier ) : void
identifier string
return void

ScheduledPaymentsInfo() public method

public ScheduledPaymentsInfo ( ) : void
return void

SchedulerTimerElapsed() public method

public SchedulerTimerElapsed ( object sender, System.Timers.ElapsedEventArgs elapsedEventArgs ) : void
sender object
elapsedEventArgs System.Timers.ElapsedEventArgs
return void

SetSchedTimer() public method

public SetSchedTimer ( int seconds ) : void
seconds int
return void

Start() public method

public Start ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

StipendInfo() public method

public StipendInfo ( ) : void
return void

getStipendConfig() public method

public getStipendConfig ( ) : void
return void

Property Details

eventManager public property

public UniverseEventManager,Universe.Framework.Services.ClassHelpers.Other eventManager
return Universe.Framework.Services.ClassHelpers.Other.UniverseEventManager