public HALEmbedded WithEmbededState(IEmbededState embededState) { var embeddeds = new List <Embedded>(); var embedded = new Embedded(embededState.ResourceName); foreach (var embededStateState in embededState.States) { embedded.WithResource(EmbeddedResource.New(embededStateState.GetState()) .WithLinkObjects(embededStateState.LinkObjects)); } embeddeds.Add(embedded); _hal.WithEmbeddeds(embeddeds); return(this); }
public HAL WithEmbedded(Embedded embedded) { embeddeds.Add(embedded); return(this); }