C# Class CSharpTradeOffers.Configuration.JsonConfigHandler

Generic config file handler
Show file Open project: FatherFoxxy/CSharpTradeOffers

Public Methods

Method Description
Reload ( DefaultConfig config ) : DefaultConfig

Reloads the configuration file (path). If file is not present, it will generate a new one.

WriteChanges ( DefaultConfig towrite ) : void

Writes the changes made to the config.

Method Details

Reload() public method

Reloads the configuration file (path). If file is not present, it will generate a new one.
public Reload ( DefaultConfig config ) : DefaultConfig
config DefaultConfig
return DefaultConfig

WriteChanges() public method

Writes the changes made to the config.
public WriteChanges ( DefaultConfig towrite ) : void
towrite DefaultConfig
return void