ENUM

HaapiModel.ContentFactory

Contents

public enum ContentFactory

Provides functionality to build instances of common content.

Methods

metadata(templateArea:viewName:)

public static func metadata(templateArea: String?, viewName: String?) -> Metadata?

Creates an instance of Metadata model.

message(key:literal:)

public static func message(key: String?, literal: String) -> Message

Creates an instance of Message model.

userMessage(text:classList:)

public static func userMessage(text: Message, classList: [String]) -> UserMessage

Creates an instance of UserMessage model.