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);
};
}
- public async Task<TimelineResponse> Send(IApiConnection apiConnection)
+ public async Task<TimelineGraphqlResponse> Send(IApiConnection apiConnection)
{
var request = new GetRequest
{
};
}
- public async Task<TimelineResponse> Send(IApiConnection apiConnection)
+ public async Task<TimelineGraphqlResponse> Send(IApiConnection apiConnection)
{
var request = new GetRequest
{
};
}
- public async Task<TimelineResponse> Send(IApiConnection apiConnection)
+ public async Task<TimelineGraphqlResponse> Send(IApiConnection apiConnection)
{
var request = new GetRequest
{
};
}
- public async Task<TimelineResponse> Send(IApiConnection apiConnection)
+ public async Task<TimelineGraphqlResponse> Send(IApiConnection apiConnection)
{
var request = new GetRequest
{
namespace OpenTween.Api.GraphQL
{
- public record TimelineResponse(
+ public record TimelineGraphqlResponse(
TimelineTweet[] Tweets,
QueryCursor<TwitterGraphqlCursor>? CursorTop,
QueryCursor<TwitterGraphqlCursor>? CursorBottom
{
public class TimelineResponseParser
{
- public static TimelineResponse Parse(XElement rootElm)
+ public static TimelineGraphqlResponse Parse(XElement rootElm)
{
ErrorResponse.ThrowIfError(rootElm);
};
}
- public async Task<TimelineResponse> Send(IApiConnection apiConnection)
+ public async Task<TimelineGraphqlResponse> Send(IApiConnection apiConnection)
{
var request = new GetRequest
{