EMLocationMessageBody.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. * The location message body.
  22. */
  23. @interface EMLocationMessageBody : EMMessageBody
  24. /**
  25. * \~chinese
  26. * 纬度。
  27. *
  28. * \~english
  29. * The location latitude.
  30. */
  31. @property (nonatomic) double latitude;
  32. /**
  33. * \~chinese
  34. * 经度。
  35. *
  36. * \~english
  37. * The location longitude.
  38. */
  39. @property (nonatomic) double longitude;
  40. /**
  41. * \~chinese
  42. * 地址信息。
  43. *
  44. * \~english
  45. * The address.
  46. */
  47. @property (nonatomic, copy) NSString * _Nullable address;
  48. /**
  49. * \~chinese
  50. * 建筑物名称
  51. *
  52. * \~english
  53. * buildingName
  54. */
  55. @property (nonatomic, copy) NSString *_Nullable buildingName;
  56. /**
  57. * \~chinese
  58. * 初始化位置消息体
  59. *
  60. * @param aLatitude 纬度。
  61. * @param aLongitude 经度。
  62. * @param aAddress 地理位置信息。
  63. *
  64. * @result 位置消息体实例。
  65. *
  66. * \~english
  67. * Initializes a location message body instance.
  68. *
  69. * @param aLatitude The latitude.
  70. * @param aLongitude The longitude.
  71. * @param aAddress The address.
  72. *
  73. * @result The location message body instance.
  74. */
  75. - (instancetype _Nonnull)initWithLatitude:(double)aLatitude
  76. longitude:(double)aLongitude
  77. address:(NSString * _Nullable)aAddress;
  78. /*!
  79. * \~chinese
  80. * 初始化位置消息体
  81. *
  82. * @param aLatitude 纬度
  83. * @param aLongitude 经度
  84. * @param aAddress 地理位置信息
  85. * @param aBuildingName 建筑物名称
  86. *
  87. * @result 位置消息体实例
  88. *
  89. * \~english
  90. * Initialize a location message body instance
  91. *
  92. * @param aLatitude Latitude
  93. * @param aLongitude Longitude
  94. * @param aAddress Address
  95. * @param aBuildingName BuildingName
  96. *
  97. * @result Location message body instance
  98. */
  99. - (instancetype _Nonnull)initWithLatitude:(double)aLatitude
  100. longitude:(double)aLongitude
  101. address:(NSString *_Nullable)aAddress
  102. buildingName:(NSString *_Nullable)aBuildingName;
  103. @end