public TopicsFeed GetComments(BoardGetCommentsParams @params, bool skipAuthorization = true) { var response = _vk.Call("board.getComments", @params, skipAuthorization); var result = new TopicsFeed { Count = response["count"], Items = response["items"].ToReadOnlyCollectionOf<Comment>(x => x), Profiles = response["profiles"].ToReadOnlyCollectionOf<User>(x => x), Groups = response["groups"].ToReadOnlyCollectionOf<Group>(x => x) }; return result; }
public TopicsFeed GetComments(BoardGetCommentsParams @params, bool skipAuthorization = false) { var response = _vk.Call("board.getComments", @params, skipAuthorization); var result = new TopicsFeed { Count = response["count"], Items = response["items"].ToReadOnlyCollectionOf <Comment>(x => x), Profiles = response["profiles"].ToReadOnlyCollectionOf <User>(x => x), Groups = response["groups"].ToReadOnlyCollectionOf <Group>(x => x) }; return(result); }
/// <summary> /// Возвращает список сообщений в указанной теме. /// </summary> /// <param name="params"> Входные параметры выборки. </param> /// <param name="skipAuthorization"> Если <c> true </c> то пропустить авторизацию. </param> /// <returns> /// </returns> /// <remarks> /// Страница документации ВКонтакте /// <see href="https://new.vk.com/dev/board.getComments" />. /// </remarks> public TopicsFeed GetComments(BoardGetCommentsParams @params, bool skipAuthorization = false) { var response = _vk.Call(methodName: "board.getComments", parameters: @params, skipAuthorization: skipAuthorization); var result = new TopicsFeed { Count = response[key : "count"] , Items = response[key : "items"].ToReadOnlyCollectionOf <CommentBoard>(selector : x => x) , Profiles = response[key : "profiles"].ToReadOnlyCollectionOf <User>(selector : x => x) , Groups = response[key : "groups"].ToReadOnlyCollectionOf <Group>(selector : x => x) }; return(result); }