Inherits from NSObject
Declared in OIRestaurantBase.h
OIRestaurantBase.m

Overview

Class contain basic informations about restaurant.

Tasks

Properties

ID

Restaurant identifier.

@property (nonatomic, copy) NSString *ID

Discussion

Restaurant identifier.

Declared In

OIRestaurantBase.h

name

The name of the restaurant.

@property (nonatomic, copy) NSString *name

Discussion

The name of the restaurant.

Declared In

OIRestaurantBase.h

Class Methods

restaurantsNearAddress:availableAt:usingBlock:

Get list of restaurants that deliver to a particular address.

+ (void)restaurantsNearAddress:(OIAddress *)address availableAt:(OIDateTime *)dateTime usingBlock:(void ( ^ ) ( NSArray *restaurants ))block

Parameters

address

Address (OIAddress) is used for search the nearest restaurants.

block

Block return array of the nearest restaurants (OIRestaurantBase) for address (OIAddress).

Discussion

Get list of restaurants that deliver to a particular address.

Declared In

OIRestaurantBase.h

Instance Methods

initWithRestaurantBase:

Create restaurant instance by another instance.

- (id)initWithRestaurantBase:(OIRestaurantBase *)restaurantBase

Parameters

restaurantBase

Restaurant instance (OIRestaurantBase).

Discussion

Create restaurant instance by another instance.

Declared In

OIRestaurantBase.h