OSDN Git Service

TimelineResponseクラスをTimelineGraphqlResponseに名前変更
authorKimura Youichi <kim.upsilon@bucyou.net>
Mon, 6 May 2024 17:08:07 +0000 (02:08 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Mon, 6 May 2024 17:08:07 +0000 (02:08 +0900)
OpenTween.Tests/Api/GraphQL/TimelineGraphqlResponseTest.cs [moved from OpenTween.Tests/Api/GraphQL/TimelineResponseTest.cs with 89% similarity]
OpenTween/Api/GraphQL/HomeLatestTimelineRequest.cs
OpenTween/Api/GraphQL/LikesRequest.cs
OpenTween/Api/GraphQL/ListLatestTweetsTimelineRequest.cs
OpenTween/Api/GraphQL/SearchTimelineRequest.cs
OpenTween/Api/GraphQL/TimelineGraphqlResponse.cs [moved from OpenTween/Api/GraphQL/TimelineResponse.cs with 97% similarity]
OpenTween/Api/GraphQL/TimelineResponseParser.cs
OpenTween/Api/GraphQL/UserTweetsAndRepliesRequest.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);
index f848810..9e590c7 100644 (file)
@@ -56,7 +56,7 @@ namespace OpenTween.Api.GraphQL
             };
         }
 
-        public async Task<TimelineResponse> Send(IApiConnection apiConnection)
+        public async Task<TimelineGraphqlResponse> Send(IApiConnection apiConnection)
         {
             var request = new GetRequest
             {
index d919769..b03dbf4 100644 (file)
@@ -62,7 +62,7 @@ namespace OpenTween.Api.GraphQL
             };
         }
 
-        public async Task<TimelineResponse> Send(IApiConnection apiConnection)
+        public async Task<TimelineGraphqlResponse> Send(IApiConnection apiConnection)
         {
             var request = new GetRequest
             {
index 81c0ccc..22880cb 100644 (file)
@@ -79,7 +79,7 @@ namespace OpenTween.Api.GraphQL
             };
         }
 
-        public async Task<TimelineResponse> Send(IApiConnection apiConnection)
+        public async Task<TimelineGraphqlResponse> Send(IApiConnection apiConnection)
         {
             var request = new GetRequest
             {
index 2f00249..6edafc0 100644 (file)
@@ -81,7 +81,7 @@ namespace OpenTween.Api.GraphQL
             };
         }
 
-        public async Task<TimelineResponse> Send(IApiConnection apiConnection)
+        public async Task<TimelineGraphqlResponse> Send(IApiConnection apiConnection)
         {
             var request = new GetRequest
             {
similarity index 97%
rename from OpenTween/Api/GraphQL/TimelineResponse.cs
rename to OpenTween/Api/GraphQL/TimelineGraphqlResponse.cs
index d30c556..6fda9f0 100644 (file)
@@ -27,7 +27,7 @@ using OpenTween.Models;
 
 namespace OpenTween.Api.GraphQL
 {
-    public record TimelineResponse(
+    public record TimelineGraphqlResponse(
         TimelineTweet[] Tweets,
         QueryCursor<TwitterGraphqlCursor>? CursorTop,
         QueryCursor<TwitterGraphqlCursor>? CursorBottom
index dfc2d20..8522698 100644 (file)
@@ -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);
 
index 790a0ac..8bbf154 100644 (file)
@@ -64,7 +64,7 @@ namespace OpenTween.Api.GraphQL
             };
         }
 
-        public async Task<TimelineResponse> Send(IApiConnection apiConnection)
+        public async Task<TimelineGraphqlResponse> Send(IApiConnection apiConnection)
         {
             var request = new GetRequest
             {