EVGCategory Class Reference

Inherits from EVGItem : NSObject
Declared in EVGItems.h

Overview

A category organizes other items and is contained in a hierarchy.

  isDepartment

If YES, this category is a department. Dynamic promoted content can be configured to only choose categories that are also departments.

@property (nonatomic) BOOL isDepartment

Declared In

EVGItems.h

+ categoryWithId:

Creates an EVGCategory with the required id only.

+ (nonnull instancetype)categoryWithId:(nonnull NSString *)evgId

Parameters

evgId

See [EVGItem evgId]. This is the only required field.

Return Value

A category which can be further modified.

Declared In

EVGItems.h

+ categoryWithId:isDepartment:name:evgDescription:

Creates an EVGCategory with the required id and most common optionals.

+ (nonnull instancetype)categoryWithId:(nonnull NSString *)evgId isDepartment:(BOOL)isDepartment name:(nullable NSString *)name evgDescription:(nullable NSString *)evgDescription

Parameters

evgId

See [EVGItem evgId]. This is the only required field.

isDepartment

See isDepartment

name

See [EVGItem name]

evgDescription

See [EVGItem evgDescription]

Return Value

A category which can be further modified.

Declared In

EVGItems.h

+ categoryFromJSONDictionary:

Creates an EVGCategory from the provided JSON.

+ (nullable instancetype)categoryFromJSONDictionary:(nonnull NSDictionary<NSString*,id> *)json

Parameters

json

A category in JSON form

Return Value

A category which can be further modified, or nil if JSON is invalid

Declared In

EVGItems.h