如何过滤Quickblox用户? [英] How to filter Quickblox users?

查看:86
本文介绍了如何过滤Quickblox用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想根据他们的电话号码或电子邮件过滤我的应用程序用户,但我不希望完全匹配,而是部分电子邮件或用户应返回的一部分数字作为响应. Quickblox iOS SDK中有办法吗?

I want to filter my application users based on their phone number or email, but I don't want exact match, instead part of the email or part of the number users should return in response. Is there a way in Quickblox iOS SDK?

假设,我有一些quickblox用户,如下所示:

Suppose, I've some quickblox users like below :

 ID NAME      Email Address             Mobile Number

  1. User1 | yuyuqabc@somedomain.com | + 91-12345-67890

  1. User1 | yuyuqabc@somedomain.com | +91-12345-67890

User2 | qerqrorp@somedomain.com | + 1-123-000-7891

User2 | qerqrorp@somedomain.com | +1-123-000-7891

User3 | xyzabcqry@somedomain.com | + 64-123-456-78

User3 | xyzabcqry@somedomain.com | +64-123-456-78

现在,过滤器应采用这种方式,

Now the filter should apply like this,

如果我要查询包含"abc"字样的电子邮件,然后应返回第一和第三用户.

if I want to query on email, which contains "abc" then should return 1st and 3rd user.

如果我要查询包含"23"的电话号码,然后应返回所有用户.

if I want to query on phone number, which contains "23" then should return all users.

如果我要查询包含"234"字样的电话号码,然后应返回第一和第三用户.

if I want to query on phone number, which contains "234" then should return 1st and 3rd user.

有可能吗?

推荐答案

仅当您使用CustomObjects模块而不是Users时才有可能. 因此,您将需要在CustomObjects中创建User类,并且所有操作员都将在那里工作.

It is possible only if you will use CustomObjects module instead of Users. So you will need to create User class in CustomObjects and you will have all operators working there.

在用户中,这是不可能的.

In Users it is impossible.

这篇关于如何过滤Quickblox用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆