public static SkillManifest CreateSkill(string id, string name, string endpoint, string actionId, List <Models.Manifest.Slot> slots = null) { var skillManifest = new SkillManifest { Name = name, Id = id, Endpoint = new Uri(endpoint), Actions = new List <Models.Manifest.Action>(), }; var action = new Models.Manifest.Action { Id = actionId, Definition = new ActionDefinition(), }; // Provide slots if we have them if (slots != null) { action.Definition.Slots = slots; } skillManifest.Actions.Add(action); return(skillManifest); }
public static Models.Manifest.Action CreateAction(string id, List <Models.Manifest.Slot> slots = null) { var action = new Models.Manifest.Action(); action.Id = id; action.Definition = new ActionDefinition(); action.Definition.Slots = slots; return(action); }