-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFlickrFetcher.h
38 lines (29 loc) · 896 Bytes
/
FlickrFetcher.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// FlickrFetcher.h
//
// Created for Stanford CS193p Winter 2013.
// Copyright 2013 Stanford University
// All rights reserved.
//
#import <Foundation/Foundation.h>
#define FLICKR_PHOTO_TITLE @"title"
#define FLICKR_PHOTO_DESCRIPTION @"description._content"
#define FLICKR_PLACE_NAME @"_content"
#define FLICKR_PHOTO_ID @"id"
#define FLICKR_LATITUDE @"latitude"
#define FLICKR_LONGITUDE @"longitude"
#define FLICKR_PHOTO_OWNER @"ownername"
#define FLICKR_PHOTO_PLACE_NAME @"derived_place"
#define FLICKR_TAGS @"tags"
#define NSLOG_FLICKR NO
typedef enum {
FlickrPhotoFormatSquare = 1,
FlickrPhotoFormatLarge = 2,
FlickrPhotoFormatThumbnail = 3,
FlickrPhotoFormatSmall = 4,
FlickrPhotoFormatOriginal = 64
} FlickrPhotoFormat;
@interface FlickrFetcher : NSObject
+ (NSArray *)uscPhotos;
+ (NSURL *)urlForPhoto:(NSDictionary *)photo format:(FlickrPhotoFormat)format;
@end