Exemplo n.º 1
0
 /// <inheritdoc />
 public IEnumerable <Note> Get(NotesGetParams notesGetParams)
 {
     return(_vk.Call(methodName: "notes.get",
                     parameters: new VkParameters
     {
         { "note_ids", notesGetParams.NoteIds },
         { "user_id", notesGetParams.UserId },
         { "offset", notesGetParams.Offset },
         { "count", notesGetParams.Count },
         { "sort", notesGetParams.Sort }
     }).ToReadOnlyCollectionOf <Note>(selector: x => x));
 }
Exemplo n.º 2
0
 /// <inheritdoc />
 public Task <IEnumerable <Note> > GetAsync(NotesGetParams notesGetParams)
 {
     return(TypeHelper.TryInvokeMethodAsync(func: () => Get(notesGetParams: notesGetParams)));
 }