public Account GetAccount(string username) { return(OnlineAccounts.Find(x => x.AccountName == username)); }
public Account GetAccount(NetConnection connection) { return(OnlineAccounts.Find(x => x.Connection == connection)); }
public Account GetAccount(int accountId) { return(OnlineAccounts.Find(x => x.AccountId == accountId)); }
public Account GetAccountByCharacterName(string characterName) { return(OnlineAccounts.Find(x => x.ConnectedCharacter.Name.ToLower() == characterName.ToLower())); }