PageRenderTime 27ms CodeModel.GetById 16ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/Source/externals/GData/Source/Clients/Analytics/GDataAnalyticsMetric.h

http://google-email-uploader-mac.googlecode.com/
C++ Header | 55 lines | 14 code | 13 blank | 28 comment | 1 complexity | dbe4d0985915244c918386056588f0dd MD5 | raw file
 1/* Copyright (c) 2009 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//  GDataAnalyticsMetric.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_ANALYTICS_SERVICE
21
22#import "GDataObject.h"
23
24// Metric, like
25//
26//     <dxp:metric confidenceInterval="0.0"
27//                 name="ga:pageviews"
28//                 type="integer"
29//                 value="1"/>
30//
31// Metrics are documented at
32// http://code.google.com/apis/analytics/docs/gdata/gdataReferenceDimensionsMetrics.html
33
34@interface GDataAnalyticsMetric : GDataObject <GDataExtension>
35
36- (NSNumber *)confidenceInterval; // double
37- (void)setConfidenceInterval:(NSNumber *)num;
38
39- (NSString *)name;
40- (void)setName:(NSString *)str;
41
42- (NSString *)type;
43- (void)setType:(NSString *)str;
44
45- (NSString *)stringValue;
46- (void)setStringValue:(NSString *)str;
47
48// convenience accessors
49
50// return the value attribute as a double
51- (NSNumber *)doubleValue;
52
53@end
54
55#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_ANALYTICS_SERVICE