C# Class Treasury.Bank

Show file Open project: NyxStudios/Treasury

Public Methods

Method Description
Bank ( String name ) : System
DoesAccountExist ( string name ) : bool
GetAccountAmount ( string name ) : int
UpdateAccount ( string name, int new_amount ) : void

Private Methods

Method Description
InitializeDB ( ) : void

Initializes this banks database for access later

SanitizeName ( ) : string

Returns the name of the bank with spaces replaced with underscores.

Method Details

Bank() public method

public Bank ( String name ) : System
name String
return System

DoesAccountExist() public method

public DoesAccountExist ( string name ) : bool
name string
return bool

GetAccountAmount() public method

public GetAccountAmount ( string name ) : int
name string
return int

UpdateAccount() public method

public UpdateAccount ( string name, int new_amount ) : void
name string
new_amount int
return void