/// <summary> /// Разобрать из json. /// </summary> /// <param name="response">Ответ сервера.</param> /// <returns></returns> public static MarketComment FromJson(VkResponse response) { var item = new MarketComment { Comments = response["items"].ToReadOnlyCollectionOf<Comment>(x => x), Count = response["count"], Profiles = response["profiles"].ToReadOnlyCollectionOf<User>(x => x), Groups = response["groups"].ToReadOnlyCollectionOf<Group>(x => x) }; return item; }
/// <summary> /// Разобрать из json. /// </summary> /// <param name="response">Ответ сервера.</param> /// <returns></returns> internal static MarketComment FromJson(VkResponse response) { var item = new MarketComment { Comments = response["items"].ToReadOnlyCollectionOf <Comment>(x => x), Count = response["count"], Profiles = response["profiles"].ToReadOnlyCollectionOf <User>(x => x), Groups = response["groups"].ToReadOnlyCollectionOf <Group>(x => x) }; return(item); }
/// <summary> /// ��������� �� json. /// </summary> /// <param name="response"> ����� �������. </param> /// <returns> </returns> public static MarketComment FromJson(VkResponse response) { var item = new MarketComment { Comments = response[key : "items"].ToReadOnlyCollectionOf <Comment>(selector : x => x) , Count = response[key : "count"] , Profiles = response[key : "profiles"].ToReadOnlyCollectionOf <User>(selector : x => x) , Groups = response[key : "groups"].ToReadOnlyCollectionOf <Group>(selector : x => x) }; return(item); }