-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/#68' into Manual-Test
- Loading branch information
Showing
5 changed files
with
86 additions
and
1 deletion.
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
27 changes: 27 additions & 0 deletions
27
src/BscScan.NetCore/Models/Request/Tokens/TokenHolderListRequest.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,27 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace BscScan.NetCore.Models.Request.Tokens | ||
{ | ||
/// <summary> | ||
/// TokenHolderListRequest | ||
/// </summary> | ||
public class TokenHolderListRequest | ||
{ | ||
/// <summary> | ||
/// the contract address of the BEP-20 token | ||
/// </summary> | ||
[JsonPropertyName("contractaddress")] | ||
public string? ContractAddress { get; set; } | ||
/// <summary> | ||
/// the integer page number, if pagination is enabled (default is 1) | ||
/// </summary> | ||
[JsonPropertyName("page")] | ||
public int Page { get; set; } = 1; | ||
|
||
/// <summary> | ||
/// the number of transactions displayed per page (default is 10) | ||
/// </summary> | ||
[JsonPropertyName("offset")] | ||
public int OffSet { get; set; } = 10; | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
src/BscScan.NetCore/Models/Response/Tokens/TokenHolderList.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,35 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace BscScan.NetCore.Models.Response.Tokens | ||
{ | ||
/// <summary> | ||
/// TokenHolderList | ||
/// </summary> | ||
public class TokenHolderList : BaseResponse | ||
{ | ||
/// <summary> | ||
/// List of TokenHolderListItem | ||
/// </summary> | ||
[JsonPropertyName("result")] | ||
public IEnumerable<TokenHolderListItem>? Result { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// TokenHolderListItem | ||
/// </summary> | ||
public class TokenHolderListItem | ||
{ | ||
/// <summary> | ||
/// TokenHolderAddress | ||
/// </summary> | ||
[JsonPropertyName("TokenHolderAddress")] | ||
public string? TokenHolderAddress { get; set; } | ||
|
||
/// <summary> | ||
/// TokenHolderQuantity | ||
/// </summary> | ||
[JsonPropertyName("TokenHolderQuantity")] | ||
public string? TokenHolderQuantity { 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