public UnityCommandDetails(ComponentDefinition.CommandDefinition rawCommandDefinition) : base(rawCommandDefinition) { FqnRequestType = DetailsUtils.GetCapitalisedFqnTypename(rawCommandDefinition.RequestType); FqnResponseType = DetailsUtils.GetCapitalisedFqnTypename(rawCommandDefinition.ResponseType); CommandIndex = rawCommandDefinition.CommandIndex; }
public UnityCommandDetails(ComponentDefinition.CommandDefinition commandDefinitionRaw) { CommandName = Formatting.SnakeCaseToPascalCase(commandDefinitionRaw.Name); CamelCaseCommandName = Formatting.PascalCaseToCamelCase(CommandName); FqnRequestType = CommonDetailsUtils.GetCapitalisedFqnTypename(commandDefinitionRaw.RequestType); FqnResponseType = CommonDetailsUtils.GetCapitalisedFqnTypename(commandDefinitionRaw.ResponseType); CommandIndex = commandDefinitionRaw.CommandIndex; }