EVGBlog Class Reference

Inherits from EVGCategorizedItem : EVGItem : NSObject
Declared in EVGItems.h

Overview

A blog is content that is typically presented as reverse chronologically sorted on a single topic.

  modifiedDate

Date and time when this blog was last modified.

@property (nullable, nonatomic, strong) NSDate *modifiedDate

Declared In

EVGItems.h

  subTitle

Subtitle for this blog.

@property (nullable, nonatomic, copy) NSString *subTitle

Declared In

EVGItems.h

+ blogWithId:

Creates an EVGBlog with the required id only.

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

Parameters

evgId

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

Return Value

A blog which can be further modified.

Declared In

EVGItems.h

+ blogWithId:name:subTitle:url:evgDescription:

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

+ (nonnull instancetype)blogWithId:(nonnull NSString *)evgId name:(nullable NSString *)name subTitle:(nullable NSString *)subTitle url:(nullable NSString *)url evgDescription:(nullable NSString *)evgDescription

Parameters

evgId

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

name

See [EVGItem name]

subTitle

See subTitle

url

See [EVGItem url]

evgDescription

See [EVGItem evgDescription]

Return Value

A blog which can be further modified.

Declared In

EVGItems.h

+ blogFromJSONDictionary:

Creates a blog from the provided JSON.

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

Parameters

json

A blog in JSON form

Return Value

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

Declared In

EVGItems.h