public EntityList<int> GetSync( int userId , GroupsGetFilter? filter = null, int? offset = null, int? count = 100 ) { var task = _parent.Executor.ExecAsync( _parent._reqapi.Groups.Get( userId,filter,offset, count ) ); task.Wait(); return task.Result.Response; }
public Request<EntityList<int>> Get( int userId , GroupsGetFilter? filter = null, int? offset = null, int? count = 100 ) { var req = new Request<EntityList<int>>{ MethodName = "groups.get", Parameters = new Dictionary<string, string> { { "user_id", userId.ToNCString()}, { "filter", filter?.ToNCString()?.ToSnake()??""}, { "offset", offset.NullableString() }, { "count", count.NullableString() }, } }; if (_parent.IsLogged) req.Token = _parent.CurrentToken; return req; }
public async Task <EntityList<int>> Get( int userId , GroupsGetFilter? filter = null, int? offset = null, int? count = 100 ) { return ( await _parent.Executor.ExecAsync( _parent._reqapi.Groups.Get( userId,filter,offset, count ) ).ConfigureAwait(false) ).Response; }
public async Task<string> Get( int userId , GroupsGetFilter? filter = null, int? offset = null, int? count = 100 ){ return await _parent.Executor.ExecRawAsync( _parent._reqapi.Groups.Get( userId,filter,offset, count ) ).ConfigureAwait(false); }