PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/YouTube/GDataYouTubeRating.h

http://macfuse.googlecode.com/
C++ Header | 45 lines | 12 code | 9 blank | 24 comment | 1 complexity | ca505713c64f6ea289bfb85805e6baa5 MD5 | raw file
 1/* Copyright (c) 2010 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//  GDataYouTubeRating.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE
21
22#import "GDataObject.h"
23
24// YouTube like/dislike rating, like
25//
26// <yt:rating numDislikes='28' numLikes='143'/>
27//
28// or
29//
30// <yt:rating value="like"/>
31
32@interface GDataYouTubeRating : GDataObject <GDataExtension>
33+ (GDataYouTubeRating *)ratingWithValue:(NSString *)value;
34
35- (NSString *)value;
36- (void)setValue:(NSString *)str;
37
38- (NSNumber *)numberOfLikes; // int
39- (void)setNumberOfLikes:(NSNumber *)num;
40
41- (NSNumber *)numberOfDislikes; // int
42- (void)setNumberOfDislikes:(NSNumber *)num;
43@end
44
45#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE