C# Class SuperSecureBankService.SSBService

Inheritance: ISSBService
显示文件 Open project: o2platform/Demos_Files

Public Methods

Method Description
CheckUser ( string username, string password ) : System.Int64
CreateAccount ( System.Int64 userID, string accountType, string balance, string accountLevel, System.Int64 status ) : void
CreateSession ( System.Int64 userID ) : System.Int64
CreateUser ( string username, string email, string pass ) : System.Int64
GetAccounts ( System.Int64 UserID ) : DataTable
GetAllAccounts ( ) : List
GetBalance ( System.Int64 accountID ) : System.Int64
LookupSession ( string sessionValue ) : System.Int64
LookupUsername ( System.Int64 userID ) : string
RemoveSession ( System.Int64 sessionID ) : void
Transfer ( System.Int64 FromAccount, System.Int64 ToAccount, System.Int64 Amount ) : void
UpdateBalance ( System.Int64 Account, System.Int64 NewAmount ) : void
UserExists ( string username ) : bool

Method Details

CheckUser() public method

public CheckUser ( string username, string password ) : System.Int64
username string
password string
return System.Int64

CreateAccount() public method

public CreateAccount ( System.Int64 userID, string accountType, string balance, string accountLevel, System.Int64 status ) : void
userID System.Int64
accountType string
balance string
accountLevel string
status System.Int64
return void

CreateSession() public method

public CreateSession ( System.Int64 userID ) : System.Int64
userID System.Int64
return System.Int64

CreateUser() public method

public CreateUser ( string username, string email, string pass ) : System.Int64
username string
email string
pass string
return System.Int64

GetAccounts() public method

public GetAccounts ( System.Int64 UserID ) : DataTable
UserID System.Int64
return System.Data.DataTable

GetAllAccounts() public method

public GetAllAccounts ( ) : List
return List

GetBalance() public method

public GetBalance ( System.Int64 accountID ) : System.Int64
accountID System.Int64
return System.Int64

LookupSession() public method

public LookupSession ( string sessionValue ) : System.Int64
sessionValue string
return System.Int64

LookupUsername() public method

public LookupUsername ( System.Int64 userID ) : string
userID System.Int64
return string

RemoveSession() public method

public RemoveSession ( System.Int64 sessionID ) : void
sessionID System.Int64
return void

Transfer() public method

public Transfer ( System.Int64 FromAccount, System.Int64 ToAccount, System.Int64 Amount ) : void
FromAccount System.Int64
ToAccount System.Int64
Amount System.Int64
return void

UpdateBalance() public method

public UpdateBalance ( System.Int64 Account, System.Int64 NewAmount ) : void
Account System.Int64
NewAmount System.Int64
return void

UserExists() public method

public UserExists ( string username ) : bool
username string
return bool