Beispiel #1
0
 /// <inheritdoc />
 public IEnumerable <CommentNote> GetComments(NotesGetCommentParams getCommentParams)
 {
     return(_vk.Call(methodName: "notes.getComments",
                     parameters: new VkParameters
     {
         { "note_id", getCommentParams.NoteId },
         { "owner_id", getCommentParams.OwnerId },
         { "sort", getCommentParams.Sort },
         { "offset", getCommentParams.Offset },
         { "count", getCommentParams.Count },
     }).ToReadOnlyCollectionOf <CommentNote>(selector: x => x));
 }
 /// <inheritdoc />
 public Task <IEnumerable <CommentNote> > GetCommentsAsync(NotesGetCommentParams getCommentParams)
 {
     return(TypeHelper.TryInvokeMethodAsync(func: () => GetComments(getCommentParams: getCommentParams)));
 }