public override string ToString() { if (IsXlm) { return(AssetsHelper.XLMCode); } return(AssetsHelper.GetCode(Code, Issuer.ToString())); }
public static AccountModel ToModel(this AccountResponse accountResponse) { if (accountResponse == null) { return(null); } return(new AccountModel { KeyPair = accountResponse.KeyPair, SequenceNumber = accountResponse.SequenceNumber, ExistingTrustLines = accountResponse .Balances .Where(b => b.AssetIssuer != null) .Select(b => AssetsHelper.GetCode(b.AssetCode, b.AssetIssuer)) .ToList() }); }