-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
98 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/LinqToTwitter6/LinqToTwitter/Net/TwitterErrorDetails.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#nullable disable | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace LinqToTwitter.Net | ||
{ | ||
// This is the shape of any potential error coming from the new Twitter API | ||
// TwitterErrorDetails | ||
//{ | ||
// "errors": [ | ||
// { | ||
// "parameters": { | ||
// "query": [] | ||
// }, | ||
// "message": "Request parameter `query` can not be empty" | ||
// }, | ||
// { | ||
// "parameters": { | ||
// "q": [ | ||
// "LINQ%20to%20Twitter" | ||
// ] | ||
// }, | ||
// "message": "[q] is not one of [query,start_time,end_time,since_id,until_id,max_results,next_token,expansions,tweet.fields,media.fields,poll.fields,place.fields,user.fields]" | ||
// } | ||
// ], | ||
// "title": "Invalid Request", | ||
// "detail": "One or more parameters to your request was invalid.", | ||
// "type": "https://api.twitter.com/labs/2/problems/invalid-request" | ||
//} | ||
|
||
public class TwitterErrorDetails | ||
{ | ||
public Error[] Errors { get; set; } | ||
public string Title { get; set; } | ||
public string Detail { get; set; } | ||
public string Type { get; set; } | ||
} | ||
|
||
|
||
public class Error | ||
{ | ||
public Dictionary<string, string[]> Parameters { get; set; } | ||
public string Message { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters