Skip to content

Commit b2e00a3

Browse files
committed
added whereNotIn & WhereNotEqual
1 parent 4749025 commit b2e00a3

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

  • geofirequery/src/main/java/com/ckdroid/geofirequery

geofirequery/src/main/java/com/ckdroid/geofirequery/GeoQuery.kt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ class GeoQuery {
5252
return this
5353
}
5454

55+
fun whereNotEqualTo(field: String, value: Any): GeoQuery {
56+
this.query = this.query.whereNotEqualTo(field, value)
57+
return this
58+
}
59+
60+
fun whereNotEqualTo(fieldPath: FieldPath, value: Any): GeoQuery {
61+
this.query = this.query.whereNotEqualTo(fieldPath, value)
62+
return this
63+
}
64+
5565
fun whereGreaterThan(field: String, value: Any): GeoQuery {
5666
this.query = this.query.whereGreaterThan(field, value)
5767
return this
@@ -102,6 +112,16 @@ class GeoQuery {
102112
return this
103113
}
104114

115+
fun <T: Any>whereNotIn(field: String, value: List<T>): GeoQuery{
116+
this.query = this.query.whereNotIn(field, value)
117+
return this
118+
}
119+
120+
fun <T: Any>whereNotIn(field: FieldPath, value: List<T>): GeoQuery{
121+
this.query = this.query.whereNotIn(field, value)
122+
return this
123+
}
124+
105125
fun <T: Any>whereArrayContainsAny(field: String, value: List<T>): GeoQuery{
106126
this.query = this.query.whereArrayContainsAny(field, value)
107127
return this

0 commit comments

Comments
 (0)