Example #1
0
 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;
 }
Example #2
0
            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;
            }
Example #3
0
 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;
 }
Example #4
0
 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);
 }