891a18819b
* react to renamespacing * merge dev * fmt * initialize things with typeloader * autocad initialization * add arcgis * add more projects to local * instrument rhino more * update nugets * fmt
27 lines
762 B
C#
27 lines
762 B
C#
using Speckle.Connectors.Utils.Operations;
|
|
using Speckle.Sdk.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
|
|
);
|
|
}
|