OIRestaurantBase Class Reference
Inherits from | NSObject |
Declared in | OIRestaurantBase.h OIRestaurantBase.m |
Tasks
-
ID
Restaurant identifier.
property -
name
The name of the restaurant.
property -
– initWithRestaurantBase:
Create restaurant instance by another instance.
-
+ restaurantsNearAddress:availableAt:usingBlock:
Get list of restaurants that deliver to a particular address.
Properties
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