Skip to content

Class EventViewModelFactory

Namespace: Momentum.Extensions.EventMarkdownGenerator.Services
Assembly: Momentum.Extensions.EventMarkdownGenerator.dll

Factory for creating view models used in Liquid template rendering. Extracts complex object creation logic from FluidMarkdownGenerator.

csharp
public static class EventViewModelFactory

Inheritance

objectEventViewModelFactory

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Methods

CreateEventModel(EventMetadata, EventDocumentation, GeneratorOptions?)

Creates an event view model for template rendering.

csharp
public static EventViewModel CreateEventModel(EventMetadata metadata, EventDocumentation documentation, GeneratorOptions? options = null)

Parameters

metadata EventMetadata

documentation EventDocumentation

options GeneratorOptions?

Returns

EventViewModel

CreateSchemaModel(Type)

Creates a schema model for template rendering.

csharp
public static object CreateSchemaModel(Type schemaType)

Parameters

schemaType Type

Returns

object