a1c0fbec3e
* alphabetize deps * rerun locks * use new nuget * dump usage of one not null * dump another usage of not null
27 lines
763 B
C#
27 lines
763 B
C#
using Speckle.Connectors.Utils.Operations;
|
|
using Speckle.Core.Common;
|
|
|
|
namespace Speckle.Connectors.DUI.Models.Card;
|
|
|
|
public class ReceiverModelCard : ModelCard
|
|
{
|
|
public string? ProjectName { get; set; }
|
|
public string? ModelName { get; set; }
|
|
public string? SelectedVersionId { get; set; }
|
|
public string? LatestVersionId { get; set; }
|
|
public bool HasDismissedUpdateWarning { get; set; }
|
|
public List<string>? BakedObjectIds { get; set; }
|
|
|
|
public ReceiveInfo GetReceiveInfo(string sourceApplication) =>
|
|
new(
|
|
AccountId.NotNull(),
|
|
new Uri(ServerUrl.NotNull()),
|
|
ProjectId.NotNull(),
|
|
ProjectName.NotNull(),
|
|
ModelId.NotNull(),
|
|
ModelName.NotNull(),
|
|
SelectedVersionId.NotNull(),
|
|
sourceApplication
|
|
);
|
|
}
|