-
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.
Implemented Twitter API v2 Blocking and Unblocking.
- Loading branch information
Showing
5 changed files
with
68 additions
and
74 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
11 changes: 11 additions & 0 deletions
11
src/LinqToTwitter6/LinqToTwitter/Blocks/BlockingResponse.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,11 @@ | ||
using System; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace LinqToTwitter | ||
{ | ||
public class BlockingResponse | ||
{ | ||
[JsonPropertyName("data")] | ||
public BlockingResponseData? Data { get; init; } | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/LinqToTwitter6/LinqToTwitter/Blocks/BlockingResponseData.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,10 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace LinqToTwitter | ||
{ | ||
public record BlockingResponseData | ||
{ | ||
[JsonPropertyName("blocking")] | ||
public bool Blocking { 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
1 change: 0 additions & 1 deletion
1
src/LinqToTwitter6/LinqToTwitter/User/TwitterContextUserCommands.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