public UserState GetUserState(ulong id) { return(UserStates.FirstOrDefault(us => us.UserId == id)); }
internal int IncrementTableFlipPoints(ulong UsrId, int Points) { UserStates.FirstOrDefault(us => us.UserId == UsrId).TableFlipPoints += Points; Save(); return(GetUserState(UsrId).TableFlipPoints); }
internal double ModifyUserFavorability(ulong UsrId, double Amount) { UserStates.FirstOrDefault(us => us.UserId == UsrId).Favorability += Amount; Save(); return(GetUserState(UsrId).Favorability); }
public bool VerifyUsersExists(ulong id) { return(UserStates.FirstOrDefault(us => us.UserId == id) != null); }