Ejemplo n.º 1
0
        public override string Print()
        {
            string result = base.Print();

            result += $"Ticker: {Ticker}\n";
            result += $"DomainName: {DomainName}\n";
            result += $"ContractType: {ContractType.ToString()}\n";
            result += $"RenewalDate: {DateTimeToString(RenewalDate)}\n";
            result += $"Edition: {Edition.ToString()}\n";
            result += $"Description: {Description}\n";
            result += $"Precision: {Precision.ToString()}\n";
            result += $"IsFinalSupply: {IsFinalSupply.ToString()}\n";
            result += $"IsNonFungible: {IsNonFungible.ToString()}\n";
            result += $"NonFungibleType: {NonFungibleType.ToString()}\n";
            result += $"NonFungibleKey: {NonFungibleKey}\n";
            result += $"Owner: {Owner}\n";
            result += $"Address: {Address}\n";
            result += $"Currency: {Currency}\n";
            result += $"Icon: {Icon}\n";
            result += $"Image: {Image}\n";
            result += $"Custom1: {Custom1}\n";
            result += $"Custom2: {Custom2}\n";
            result += $"Custom3: {Custom3}\n";
            return(result);
        }
Ejemplo n.º 2
0
        // TO DO - add image, renewaldate
        protected override string GetExtraData()
        {
            string extraData = base.GetExtraData();

            extraData += Ticker + "|";
            extraData += DomainName + "|";
            extraData += ContractType + "|";
            extraData += DateTimeToString(RenewalDate) + "|";
            extraData += Edition.ToString() + "|";
            extraData += Description + "|";
            extraData += Precision.ToString() + "|";
            extraData += IsFinalSupply.ToString() + "|";
            extraData += IsNonFungible.ToString() + "|";
            extraData += NonFungibleType.ToString() + "|";
            extraData += NonFungibleKey + "|";
            extraData += Owner + "|";
            extraData += Address + "|";
            extraData += Currency + "|";
            extraData += Icon + "|";
            extraData += Image + "|";
            extraData += Custom1 + "|";
            extraData += Custom2 + "|";
            extraData += Custom3 + "|";
            return(extraData);
        }