| | 1 | | namespace MainScripts.DCL.ServiceProviders.OpenSea.Requests |
| | 2 | | { |
| | 3 | | public class RequestAssetSingle : RequestBase<OpenSeaNftDto> |
| | 4 | | { |
| 0 | 5 | | public string chain { get; } |
| 0 | 6 | | public string contractAddress { get; } |
| 0 | 7 | | public string tokenId { get; } |
| 0 | 8 | | public override string requestId => GetId(contractAddress, tokenId); |
| | 9 | |
|
| 0 | 10 | | internal RequestAssetSingle(string chain, string contractAddress, string tokenId) |
| | 11 | | { |
| | 12 | |
|
| 0 | 13 | | this.chain = chain; |
| 0 | 14 | | this.contractAddress = contractAddress; |
| 0 | 15 | | this.tokenId = tokenId; |
| 0 | 16 | | } |
| | 17 | |
|
| 0 | 18 | | internal static string GetId(string contractAddress, string tokenId) { return $"{contractAddress}/{tokenId}"; } |
| | 19 | | } |
| | 20 | | } |