EVGTag Class Reference

Inherits from EVGItem : NSObject
Declared in EVGItems.h

Overview

Additional tags about an item such as Brand for products or Author and Keywords for articles.

  tagType

Required. The type of a tag. See EVGTagType for values.

@property (nonatomic) EVGTagType tagType

Declared In

EVGItems.h

+ tagWithId:type:

Creates an EVGTag with the required id and type only.

+ (nonnull instancetype)tagWithId:(nonnull NSString *)evgId type:(EVGTagType)type

Parameters

evgId

Required, see [EVGItem evgId]

type

Required, see EVGTagType

Return Value

A tag which can be further modified.

Declared In

EVGItems.h

+ tagWithId:type:name:evgDescription:

Creates an EVGTag with the required id and type, and the most common optionals.

+ (nonnull instancetype)tagWithId:(nonnull NSString *)evgId type:(EVGTagType)type name:(nullable NSString *)name evgDescription:(nullable NSString *)evgDescription

Parameters

evgId

Required, see [EVGItem evgId]

type

Required, see EVGTagType

name

See [EVGItem name]

evgDescription

See [EVGItem evgDescription]

Return Value

A tag which can be further modified.

Declared In

EVGItems.h

+ tagFromJSONDictionary:

Creates a tag from the provided JSON.

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

Parameters

json

A tag in JSON form

Return Value

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

Declared In

EVGItems.h