From 9a5f5338d1a3570beaf2c11ec5572ecbe2e839b8 Mon Sep 17 00:00:00 2001 From: Kimura Youichi Date: Tue, 7 May 2024 02:08:07 +0900 Subject: [PATCH] =?utf8?q?TimelineResponse=E3=82=AF=E3=83=A9=E3=82=B9?= =?utf8?q?=E3=82=92TimelineGraphqlResponse=E3=81=AB=E5=90=8D=E5=89=8D?= =?utf8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../{TimelineResponseTest.cs => TimelineGraphqlResponseTest.cs} | 4 ++-- OpenTween/Api/GraphQL/HomeLatestTimelineRequest.cs | 2 +- OpenTween/Api/GraphQL/LikesRequest.cs | 2 +- OpenTween/Api/GraphQL/ListLatestTweetsTimelineRequest.cs | 2 +- OpenTween/Api/GraphQL/SearchTimelineRequest.cs | 2 +- .../Api/GraphQL/{TimelineResponse.cs => TimelineGraphqlResponse.cs} | 2 +- OpenTween/Api/GraphQL/TimelineResponseParser.cs | 2 +- OpenTween/Api/GraphQL/UserTweetsAndRepliesRequest.cs | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) rename OpenTween.Tests/Api/GraphQL/{TimelineResponseTest.cs => TimelineGraphqlResponseTest.cs} (89%) rename OpenTween/Api/GraphQL/{TimelineResponse.cs => TimelineGraphqlResponse.cs} (97%) diff --git a/OpenTween.Tests/Api/GraphQL/TimelineResponseTest.cs b/OpenTween.Tests/Api/GraphQL/TimelineGraphqlResponseTest.cs similarity index 89% rename from OpenTween.Tests/Api/GraphQL/TimelineResponseTest.cs rename to OpenTween.Tests/Api/GraphQL/TimelineGraphqlResponseTest.cs index 6ecb50a8..687132c4 100644 --- a/OpenTween.Tests/Api/GraphQL/TimelineResponseTest.cs +++ b/OpenTween.Tests/Api/GraphQL/TimelineGraphqlResponseTest.cs @@ -25,14 +25,14 @@ using Xunit; namespace OpenTween.Api.GraphQL { - public class TimelineResponseTest + public class TimelineGraphqlResponseTest { [Fact] public async Task ToTwitterStatuses_Test() { using var apiResponse = await TestUtils.CreateApiResponse("Resources/Responses/SearchTimeline_SimpleTweet.json"); var tweets = TimelineTweet.ExtractTimelineTweets(await apiResponse.ReadAsJsonXml()); - var timelineResponse = new TimelineResponse(tweets, new(CursorType.Top, new("")), new(CursorType.Bottom, new(""))); + var timelineResponse = new TimelineGraphqlResponse(tweets, new(CursorType.Top, new("")), new(CursorType.Bottom, new(""))); var statuses = timelineResponse.ToTwitterStatuses(); Assert.Single(statuses); diff --git a/OpenTween/Api/GraphQL/HomeLatestTimelineRequest.cs b/OpenTween/Api/GraphQL/HomeLatestTimelineRequest.cs index f8488102..9e590c78 100644 --- a/OpenTween/Api/GraphQL/HomeLatestTimelineRequest.cs +++ b/OpenTween/Api/GraphQL/HomeLatestTimelineRequest.cs @@ -56,7 +56,7 @@ namespace OpenTween.Api.GraphQL }; } - public async Task Send(IApiConnection apiConnection) + public async Task Send(IApiConnection apiConnection) { var request = new GetRequest { diff --git a/OpenTween/Api/GraphQL/LikesRequest.cs b/OpenTween/Api/GraphQL/LikesRequest.cs index d919769b..b03dbf44 100644 --- a/OpenTween/Api/GraphQL/LikesRequest.cs +++ b/OpenTween/Api/GraphQL/LikesRequest.cs @@ -62,7 +62,7 @@ namespace OpenTween.Api.GraphQL }; } - public async Task Send(IApiConnection apiConnection) + public async Task Send(IApiConnection apiConnection) { var request = new GetRequest { diff --git a/OpenTween/Api/GraphQL/ListLatestTweetsTimelineRequest.cs b/OpenTween/Api/GraphQL/ListLatestTweetsTimelineRequest.cs index 81c0cccf..22880cb7 100644 --- a/OpenTween/Api/GraphQL/ListLatestTweetsTimelineRequest.cs +++ b/OpenTween/Api/GraphQL/ListLatestTweetsTimelineRequest.cs @@ -79,7 +79,7 @@ namespace OpenTween.Api.GraphQL }; } - public async Task Send(IApiConnection apiConnection) + public async Task Send(IApiConnection apiConnection) { var request = new GetRequest { diff --git a/OpenTween/Api/GraphQL/SearchTimelineRequest.cs b/OpenTween/Api/GraphQL/SearchTimelineRequest.cs index 2f00249b..6edafc0c 100644 --- a/OpenTween/Api/GraphQL/SearchTimelineRequest.cs +++ b/OpenTween/Api/GraphQL/SearchTimelineRequest.cs @@ -81,7 +81,7 @@ namespace OpenTween.Api.GraphQL }; } - public async Task Send(IApiConnection apiConnection) + public async Task Send(IApiConnection apiConnection) { var request = new GetRequest { diff --git a/OpenTween/Api/GraphQL/TimelineResponse.cs b/OpenTween/Api/GraphQL/TimelineGraphqlResponse.cs similarity index 97% rename from OpenTween/Api/GraphQL/TimelineResponse.cs rename to OpenTween/Api/GraphQL/TimelineGraphqlResponse.cs index d30c5563..6fda9f01 100644 --- a/OpenTween/Api/GraphQL/TimelineResponse.cs +++ b/OpenTween/Api/GraphQL/TimelineGraphqlResponse.cs @@ -27,7 +27,7 @@ using OpenTween.Models; namespace OpenTween.Api.GraphQL { - public record TimelineResponse( + public record TimelineGraphqlResponse( TimelineTweet[] Tweets, QueryCursor? CursorTop, QueryCursor? CursorBottom diff --git a/OpenTween/Api/GraphQL/TimelineResponseParser.cs b/OpenTween/Api/GraphQL/TimelineResponseParser.cs index dfc2d208..85226987 100644 --- a/OpenTween/Api/GraphQL/TimelineResponseParser.cs +++ b/OpenTween/Api/GraphQL/TimelineResponseParser.cs @@ -29,7 +29,7 @@ namespace OpenTween.Api.GraphQL { public class TimelineResponseParser { - public static TimelineResponse Parse(XElement rootElm) + public static TimelineGraphqlResponse Parse(XElement rootElm) { ErrorResponse.ThrowIfError(rootElm); diff --git a/OpenTween/Api/GraphQL/UserTweetsAndRepliesRequest.cs b/OpenTween/Api/GraphQL/UserTweetsAndRepliesRequest.cs index 790a0acf..8bbf154d 100644 --- a/OpenTween/Api/GraphQL/UserTweetsAndRepliesRequest.cs +++ b/OpenTween/Api/GraphQL/UserTweetsAndRepliesRequest.cs @@ -64,7 +64,7 @@ namespace OpenTween.Api.GraphQL }; } - public async Task Send(IApiConnection apiConnection) + public async Task Send(IApiConnection apiConnection) { var request = new GetRequest { -- 2.11.0