< Summary

Class:DCLServices.Lambdas.LandsService.LandsResponse
Assembly:LandsService
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLServices/Lambdas/LandsService/LandsResponse.cs
Covered lines:0
Uncovered lines:9
Coverable lines:9
Total lines:42
Line coverage:0% (0 of 9)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:9
Method coverage:0% (0 of 9)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
GetNftInfo()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLServices/Lambdas/LandsService/LandsResponse.cs

#LineLine coverage
 1using Newtonsoft.Json;
 2using System;
 3using System.Collections.Generic;
 4using UnityEngine;
 5
 6namespace DCLServices.Lambdas.LandsService
 7{
 8    [Serializable]
 9    public class LandsResponse : PaginatedResponse
 10    {
 11        [Serializable]
 12        public class LandEntry
 13        {
 14            [JsonProperty] private string name;
 15            [JsonProperty] private string contractAddress;
 16            [JsonProperty] private string category;
 17            [JsonProperty] private string x;
 18            [JsonProperty] private string y;
 19            [JsonProperty] private string price;
 20            [JsonProperty] private string image;
 21
 022            public string Name => name;
 023            public string ContractAddress => contractAddress;
 024            public string Category => category;
 025            public string X => x;
 026            public string Y => y;
 027            public string Price => price;
 028            public string Image => image;
 29
 30            public NftInfo GetNftInfo() =>
 031                new()
 32                {
 33                    Id = contractAddress,
 34                    Category = category,
 35                };
 36        }
 37
 38        [JsonProperty] private List<LandEntry> elements;
 39
 040        public IReadOnlyList<LandEntry> Elements => elements;
 41    }
 42}