public ReadOnlyCollection<Group> Search([NotNull] string query, out int totalCount, uint? offset = null, uint? count = null, GroupSort sort = GroupSort.Normal, GroupType type = null, uint? countryId = null, uint? cityId = null, bool future = false)
{
VkErrors.ThrowIfNullOrEmpty(() => query);
var parameters = new GroupsSearchParams
{
Query = query,
Sort = sort,
Count = count,
Offset = offset,
Type = type,
CityId = cityId,
CountryId = countryId,
Future = future
};
var result = Search(parameters);
totalCount = Convert.ToInt32(result.TotalCount);
return result.ToReadOnlyCollection();
}