Пример #1
0
        /// <inheritdoc />
        public override string ToString()
        {
            var str = base.ToString();

            if (Id != 0)
            {
                str += $",Id={Id}";
            }

            if (!Name.IsEmpty())
            {
                str += $",Name={Name}";
            }

            if (!Description.IsEmpty())
            {
                str += $",Descr={Description}";
            }

            if (!PackageId.IsEmpty())
            {
                str += $",PackageId={PackageId},Repo={Repository}";
            }

            if (!Tags.IsEmpty())
            {
                str += $",Tags={Tags}";
            }

            if (Author != 0)
            {
                str += $",Author={Author}";
            }

            if (Price != null)
            {
                str += $",Price={Price}";
            }

            str += $",Downloads={DownloadCount}";

            if (Rating != null)
            {
                str += $",Rating={Rating}";
            }

            if (!DocUrl.IsEmpty())
            {
                str += $",Doc={DocUrl}";
            }

            if (Picture != default)
            {
                str += $",Picture={Picture}";
            }

            str += $",Connectors={IsRequiredConnectors},Content={ContentType}";

            return(str);
        }
Пример #2
0
        /// <inheritdoc />
        public override string ToString()
        {
            var str = base.ToString();

            if (Id != 0)
            {
                str += $",Id={Id}";
            }

            if (!Name.IsEmpty())
            {
                str += $",Name={Name}";
            }

            if (!Description.IsEmpty())
            {
                str += $",Descr={Description}";
            }

            if (!PackageId.IsEmpty())
            {
                str += $",PackageId={PackageId},Repo={Repository}";
            }

            if (!Tags.IsEmpty())
            {
                str += $",Tags={Tags}";
            }

            if (Author != 0)
            {
                str += $",Author={Author}";
            }

            if (MonthlyPrice != null || DiscountMonthlyPrice != null || RenewMonthlyPrice != null)
            {
                str += $",Monthly={MonthlyPrice},renew={RenewMonthlyPrice},disc={DiscountMonthlyPrice}";
            }

            if (AnnualPrice != null || DiscountAnnualPrice != null || RenewAnnualPrice != null)
            {
                str += $",Annual={AnnualPrice},renew={RenewAnnualPrice},disc={DiscountAnnualPrice}";
            }

            if (LifetimePrice != null || DiscountLifetimePrice != null)
            {
                str += $",Life={LifetimePrice} (disc={DiscountLifetimePrice})";
            }

            if (RenewPrice != null)
            {
                str += $",Renew={RenewPrice}";
            }

            str += $",Downloads={DownloadCount}";

            if (Rating != null)
            {
                str += $",Rating={Rating}";
            }

            if (!DocUrl.IsEmpty())
            {
                str += $",Doc={DocUrl}";
            }

            if (Picture != default)
            {
                str += $",Picture={Picture}";
            }

            str += $",Content={ContentType}";

            if (SupportedPlugins != null)
            {
                str += $",Supported={SupportedPlugins.Value}";
            }

            if (!Extra.IsEmpty())
            {
                str += $",Extra={Extra}";
            }

            if (!LatestVersion.IsEmpty())
            {
                str += $",Ver={LatestVersion}";
            }

            if (Flags != default)
            {
                str += $",Flags={Flags}";
            }

            if (PurchasedTill != default)
            {
                str += $",Purchased={PurchasedTill}";
            }

            return(str);
        }
Пример #3
0
        /// <inheritdoc />
        public override string ToString()
        {
            var str = base.ToString();

            if (Id != 0)
            {
                str += $",Id={Id}";
            }

            if (!Name.IsEmpty())
            {
                str += $",Name={Name}";
            }

            if (!Description.IsEmpty())
            {
                str += $",Descr={Description}";
            }

            if (!PackageId.IsEmpty())
            {
                str += $",PackageId={PackageId},Repo={Repository}";
            }

            if (!Tags.IsEmpty())
            {
                str += $",Tags={Tags}";
            }

            if (Author != 0)
            {
                str += $",Author={Author}";
            }

            if (Price != null)
            {
                str += $",Price={Price}";
            }

            if (RenewPrice != null)
            {
                str += $",Renew={RenewPrice}";
            }

            str += $",Downloads={DownloadCount}";

            if (Rating != null)
            {
                str += $",Rating={Rating}";
            }

            if (!DocUrl.IsEmpty())
            {
                str += $",Doc={DocUrl}";
            }

            if (Picture != default)
            {
                str += $",Picture={Picture}";
            }

            str += $",Content={ContentType}";

            if (SupportedPlugins != null)
            {
                str += $",Supported={SupportedPlugins.Value}";
            }

            if (!Extra.IsEmpty())
            {
                str += $",Extra={Extra}";
            }

            if (!LatestVersion.IsEmpty())
            {
                str += $",Ver={LatestVersion}";
            }

            if (!IsApproved)
            {
                str += $",Approved={IsApproved}";
            }

            return(str);
        }