PageRenderTime 41ms CodeModel.GetById 19ms app.highlight 19ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/externals/GData/Source/Clients/Books/GDataQueryBooks.m

http://google-email-uploader-mac.googlecode.com/
Objective C | 58 lines | 28 code | 13 blank | 17 comment | 1 complexity | db07fbbcdf658e1e64d7be71d578353c MD5 | raw file
 1/* Copyright (c) 2008 Google Inc.
 2*
 3* Licensed under the Apache License, Version 2.0 (the "License");
 4* you may not use this file except in compliance with the License.
 5* You may obtain a copy of the License at
 6*
 7*     http://www.apache.org/licenses/LICENSE-2.0
 8*
 9* Unless required by applicable law or agreed to in writing, software
10* distributed under the License is distributed on an "AS IS" BASIS,
11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12* See the License for the specific language governing permissions and
13* limitations under the License.
14*/
15
16//
17//  GDataQueryBooks.m
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_BOOKS_SERVICE
21
22#define GDATAQUERYBOOKS_DEFINE_GLOBALS 1
23#import "GDataQueryBooks.h"
24
25static NSString *const kMinViewabilityParamName = @"min-viewability";
26static NSString *const kEBookParamName = @"ebook";
27
28@implementation GDataQueryBooks
29
30+ (GDataQueryBooks *)booksQueryWithFeedURL:(NSURL *)feedURL {
31  return [self queryWithFeedURL:feedURL];   
32}
33
34#pragma mark -
35
36- (void)setMinimumViewability:(NSString *)str {
37  [self addCustomParameterWithName:kMinViewabilityParamName
38                             value:str];
39}
40
41- (NSString *)minimumViewability {
42  NSString *str = [self valueForParameterWithName:kMinViewabilityParamName];
43  return str;
44}
45
46- (void)setEBook:(NSString *)str {
47  [self addCustomParameterWithName:kEBookParamName
48                             value:str];  
49}
50
51- (NSString *)EBook {
52  NSString *str = [self valueForParameterWithName:kEBookParamName];
53  return str;
54}
55
56@end
57
58#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_BOOKS_SERVICE