public SearchUsersCollection(IProtoService protoService, string query) { _protoService = protoService; _query = query; _local = new KeyedList <string, object>(null as string); _remote = new KeyedList <string, object>(Strings.Resources.GlobalSearch); Add(_local); Add(_remote); }
public SearchChatsCollection(IProtoService protoService, string query, SearchChatsType type = SearchChatsType.All) { _protoService = protoService; _query = query; _type = type; _local = new KeyedList <string, object>(null as string); _remote = new KeyedList <string, object>(Strings.Resources.GlobalSearch); _messages = new KeyedList <string, object>(Strings.Resources.SearchMessages); Add(_local); Add(_remote); Add(_messages); }
public SearchMembersAndUsersCollection(IProtoService protoService, long chatId, ChatMembersFilter filter, string query) { _protoService = protoService; _chatId = chatId; _filter = filter; _query = query; _chat = new KeyedList <string, object>(null as string); _local = new KeyedList <string, object>(Strings.Resources.Contacts.ToUpper()); _remote = new KeyedList <string, object>(Strings.Resources.GlobalSearch); Add(_chat); Add(_local); Add(_remote); }
public SearchChatsCollection(IProtoService protoService, string query, IList <ISearchChatsFilter> filters, ChatList chatList = null, SearchChatsType type = SearchChatsType.All) { _protoService = protoService; _query = query; _chatList = chatList; _type = type; _internal = filters; _filters = new MvxObservableCollection <ISearchChatsFilter>(); _local = new KeyedList <string, object>(null as string); _remote = new KeyedList <string, object>(Strings.Resources.GlobalSearch); _messages = new KeyedList <string, object>(Strings.Resources.SearchMessages); Add(_local); Add(_remote); Add(_messages); }