EMLocationMessageBody.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*!
  2. * \~chinese
  3. * @header EMLocationMessageBody.h
  4. * @abstract 位置消息体
  5. * @author Hyphenate
  6. * @version 3.00
  7. *
  8. * \~english
  9. * @header EMLocationMessageBody.h
  10. * @abstract Location message body
  11. * @author Hyphenate
  12. * @version 3.00
  13. */
  14. #import <Foundation/Foundation.h>
  15. #import "EMMessageBody.h"
  16. /*!
  17. * \~chinese
  18. * 位置消息体
  19. *
  20. * \~english
  21. * Location message body
  22. */
  23. @interface EMLocationMessageBody : EMMessageBody
  24. /*!
  25. * \~chinese
  26. * 纬度
  27. *
  28. * \~english
  29. * Location latitude
  30. */
  31. @property (nonatomic) double latitude;
  32. /*!
  33. * \~chinese
  34. * 经度
  35. *
  36. * \~english
  37. * Loctaion longitude
  38. */
  39. @property (nonatomic) double longitude;
  40. /*!
  41. * \~chinese
  42. * 地址信息
  43. *
  44. * \~english
  45. * Address
  46. */
  47. @property (nonatomic, copy) NSString *address;
  48. /*!
  49. * \~chinese
  50. * 初始化位置消息体
  51. *
  52. * @param aLatitude 纬度
  53. * @param aLongitude 经度
  54. * @param aAddress 地理位置信息
  55. *
  56. * @result 位置消息体实例
  57. *
  58. * \~english
  59. * Initialize a location message body instance
  60. *
  61. * @param aLatitude Latitude
  62. * @param aLongitude Longitude
  63. * @param aAddress Address
  64. *
  65. * @result Location message body instance
  66. */
  67. - (instancetype)initWithLatitude:(double)aLatitude
  68. longitude:(double)aLongitude
  69. address:(NSString *)aAddress;
  70. @end