FBGraphLocation.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Copyright 2010-present Facebook.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import <Foundation/Foundation.h>
  17. #import "FBGraphObject.h"
  18. /*!
  19. @protocol
  20. @abstract
  21. The `FBGraphLocation` protocol enables typed access to the `location` property
  22. of a Facebook place object.
  23. @discussion
  24. The `FBGraphLocation` protocol represents the most commonly used properties of a
  25. location object. It may be used to access an `NSDictionary` object that has
  26. been wrapped with an <FBGraphObject> facade.
  27. */
  28. @protocol FBGraphLocation<FBGraphObject>
  29. /*!
  30. @property
  31. @abstract Typed access to a location's street.
  32. */
  33. @property (retain, nonatomic) NSString *street;
  34. /*!
  35. @property
  36. @abstract Typed access to a location's city.
  37. */
  38. @property (retain, nonatomic) NSString *city;
  39. /*!
  40. @property
  41. @abstract Typed access to a location's state.
  42. */
  43. @property (retain, nonatomic) NSString *state;
  44. /*!
  45. @property
  46. @abstract Typed access to a location's country.
  47. */
  48. @property (retain, nonatomic) NSString *country;
  49. /*!
  50. @property
  51. @abstract Typed access to a location's zip code.
  52. */
  53. @property (retain, nonatomic) NSString *zip;
  54. /*!
  55. @property
  56. @abstract Typed access to a location's latitude.
  57. */
  58. @property (retain, nonatomic) NSNumber *latitude;
  59. /*!
  60. @property
  61. @abstract Typed access to a location's longitude.
  62. */
  63. @property (retain, nonatomic) NSNumber *longitude;
  64. @end