/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. // GDataAnalyticsMetric.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_ANALYTICS_SERVICE
  19. #import "GDataObject.h"
  20. // Metric, like
  21. //
  22. // <dxp:metric confidenceInterval="0.0"
  23. // name="ga:pageviews"
  24. // type="integer"
  25. // value="1"/>
  26. //
  27. // Metrics are documented at
  28. // http://code.google.com/apis/analytics/docs/gdata/gdataReferenceDimensionsMetrics.html
  29. @interface GDataAnalyticsMetric : GDataObject <GDataExtension>
  30. - (NSNumber *)confidenceInterval; // double
  31. - (void)setConfidenceInterval:(NSNumber *)num;
  32. - (NSString *)name;
  33. - (void)setName:(NSString *)str;
  34. - (NSString *)type;
  35. - (void)setType:(NSString *)str;
  36. - (NSString *)stringValue;
  37. - (void)setStringValue:(NSString *)str;
  38. // convenience accessors
  39. // return the value attribute as a double
  40. - (NSNumber *)doubleValue;
  41. @end
  42. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_ANALYTICS_SERVICE