/// <summary> /// Copy the message into the <paramref name="destination" />. /// </summary> /// <param name="destination">The object, to which copied information.</param> public override void CopyTo(ProductInfoMessage destination) { if (destination == null) { throw new ArgumentNullException(nameof(destination)); } base.CopyTo(destination); destination.Id = Id; destination.Name = Name; destination.Description = Description; destination.PackageId = PackageId; destination.Repository = Repository; destination.Tags = Tags; destination.Author = Author; destination.Price = Price?.Clone(); destination.RenewPrice = RenewPrice?.Clone(); destination.DownloadCount = DownloadCount; destination.Rating = Rating; destination.DocUrl = DocUrl; #pragma warning disable CS0618 // Type or member is obsolete destination.IsRequiredConnectors = IsRequiredConnectors; #pragma warning restore CS0618 // Type or member is obsolete destination.SupportedPlugins = SupportedPlugins; destination.ContentType = ContentType; destination.Picture = Picture; destination.Extra = Extra; destination.Scope = Scope; destination.PriceType = PriceType; destination.LatestVersion = LatestVersion; destination.IsApproved = IsApproved; }
/// <summary> /// Copy the message into the <paramref name="destination" />. /// </summary> /// <param name="destination">The object, to which copied information.</param> public override void CopyTo(ProductInfoMessage destination) { if (destination == null) { throw new ArgumentNullException(nameof(destination)); } base.CopyTo(destination); destination.Id = Id; destination.Name = Name; destination.Description = Description; destination.DescriptionRu = DescriptionRu; destination.FullDescriptionEn = FullDescriptionEn; destination.FullDescriptionRu = FullDescriptionRu; destination.PackageId = PackageId; destination.Repository = Repository; destination.Tags = Tags; destination.Author = Author; destination.MonthlyPrice = MonthlyPrice?.Clone(); destination.AnnualPrice = AnnualPrice?.Clone(); destination.LifetimePrice = LifetimePrice?.Clone(); destination.RenewPrice = RenewPrice?.Clone(); destination.RenewMonthlyPrice = RenewMonthlyPrice?.Clone(); destination.RenewAnnualPrice = RenewAnnualPrice?.Clone(); destination.DownloadCount = DownloadCount; destination.Rating = Rating; destination.DocUrl = DocUrl; destination.SupportedPlugins = SupportedPlugins; destination.ContentType = ContentType; destination.Picture = Picture; destination.Extra = Extra; destination.Scope = Scope; destination.LatestVersion = LatestVersion; destination.StubVersions = StubVersions?.ToArray(); destination.Target = Target; destination.DiscountMonthlyPrice = DiscountMonthlyPrice?.Clone(); destination.DiscountAnnualPrice = DiscountAnnualPrice?.Clone(); destination.DiscountLifetimePrice = DiscountLifetimePrice?.Clone(); destination.Categories = Categories?.ToArray(); destination.Flags = Flags; destination.PurchasedTill = PurchasedTill; }