Exemplo n.º 1
0
 private static bool StatusNeq(Account account, AbstractQuery query)
 => (account.SexStatus & query._sexStatus) != SexStatus.None;
Exemplo n.º 2
0
 private static bool PhoneCode(Account account, AbstractQuery query) => query.phoneCode.IsPrefixOf(account.phone);
Exemplo n.º 3
0
 private static bool StatusEq(Account account, AbstractQuery query)
 => (account.SexStatus & SexStatus.AllStatus) == query._sexStatus;
Exemplo n.º 4
0
 private static bool FirstNameNull(Account account, AbstractQuery query) => account.fnameIndex == 0;
Exemplo n.º 5
0
 private static bool LastNameEq(Account account, AbstractQuery query) => account.snameIndex == query.snameIndex;
Exemplo n.º 6
0
 private static bool EmailDomain(Account account, AbstractQuery query) => account.Email._domain == query.domainIndex;
Exemplo n.º 7
0
 private static bool FirstNameEq(Account account, AbstractQuery query) => query.fnameIndex != 0 && query.fnameIndex == account.fnameIndex;
Exemplo n.º 8
0
 private static bool InterestsAny(Account account, AbstractQuery query) => account.InterestIndexes.Count > 0 && account.InterestIndexes.ContainsAny(query.interestIndexes);
Exemplo n.º 9
0
 private static bool LikesOne(Account account, AbstractQuery query) => account.LikedOne(query.like);
Exemplo n.º 10
0
 private static bool BirthGt(Account account, AbstractQuery query) => query.birth < account.birth;
Exemplo n.º 11
0
 private static bool BirthYear(Account account, AbstractQuery query) => query.birthFrom <= account.birth && account.birth < query.birthTo;
Exemplo n.º 12
0
 private static bool CityNull(Account account, AbstractQuery query) => account.cityIndex == 0;
Exemplo n.º 13
0
 private static bool CityAny(Account account, AbstractQuery query) => query.cities != null && query.cities.Contains(account.cityIndex);
Exemplo n.º 14
0
 private static bool PhoneNotNull(Account account, AbstractQuery query) => !account.phone.IsEmpty;
Exemplo n.º 15
0
 private static bool SexStatusEq(Account account, AbstractQuery query)
 => account.SexStatus == query._sexStatus;
Exemplo n.º 16
0
 private static bool LikesAll(Account account, AbstractQuery query) => account.likes != null && account.LikedAll(query.likes);
Exemplo n.º 17
0
 private static bool SexStatusNeq(Account account, AbstractQuery query)
 => (account.SexStatus | query._sexStatus) == query._sexStatus;
Exemplo n.º 18
0
 private static bool PremiumNow(Account account, AbstractQuery query) => account.HasPremium();
Exemplo n.º 19
0
 private static bool EmailGt(Account account, AbstractQuery query) => account.Email.CompareTo(query.email) > 0;
Exemplo n.º 20
0
 private static bool PremiumNotNull(Account account, AbstractQuery query) => account.premium.start != 0;
Exemplo n.º 21
0
 private static bool FirstNameAny(Account account, AbstractQuery query) => query.fnamesIndexes.Contains(account.fnameIndex);
Exemplo n.º 22
0
 private static bool CountryEq(Account account, AbstractQuery query) => query.countryIndex > 0 && query.countryIndex == account.countryIndex;
Exemplo n.º 23
0
 private static bool LastNameStarts(Account account, AbstractQuery query)
 //TODO: this method sucks currently. Introduce a good index.
 => account.snameIndex > 0 && StringIndexer.LastNames[account.snameIndex].StartsWith(query.snamePrefix, StringComparison.Ordinal);
Exemplo n.º 24
0
 private static bool CountryNotNull(Account account, AbstractQuery query) => account.countryIndex != 0;
Exemplo n.º 25
0
 private static bool LastNameNotNull(Account account, AbstractQuery query) => account.snameIndex != 0;
Exemplo n.º 26
0
 private static bool Joined(Account account, AbstractQuery query) => query.joinedFrom <= account.joined && account.joined < query.joinedTo;