public bool AquireTicket(string User, string Password) { var res = FListClient.Authenticate(User, Password); res.Wait(); return(res.Result); }
public override void OnOpen(object sender, EventArgs e) { //Token to authenticate on F-list var ticket = FListClient.GetTicket(_username, _password); var identificationInfo = new Identification() { account = _username, botVersion = "1.0.0", character = _botCharacterName, ticket = ticket, method = "ticket", botCreator = _username }; WebSocketClient.Send(identificationInfo.ToString()); }
public Character GetOrCreateCharacter(string Name) { lock (FListClient.Characters) { var character = FListClient.GetOrCreateCharacter(Name); if (!(character is Character)) { FListClient.Characters.Remove(character); var oldCharacter = character; character = new Character(this, oldCharacter); FListClient.Characters.Add(character); } return(character as Character); } }