1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//
// JMSGLocationContent.h
// JMessage
//
// Created by 邓永豪 on 16/7/26.
// Copyright © 2016年 HXHG. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <JMessage/JMSGAbstractContent.h>
/**
* 地理位置内容类型
*/
@interface JMSGLocationContent : JMSGAbstractContent <NSCopying>
JMSG_ASSUME_NONNULL_BEGIN
/*!
* @abstract 纬度
*/
@property(nonatomic, strong, readonly) NSNumber *latitude;
/*!
* @abstract 经度
*/
@property(nonatomic, strong, readonly) NSNumber *longitude;
/*!
* @abstract 缩放
*/
@property(nonatomic, strong, readonly) NSNumber *scale;
/*!
* @abstract 详细地址信息
*/
@property(nonatomic, copy, readonly) NSString *address;
// 不支持使用的初始化方法
- (nullable instancetype)init NS_UNAVAILABLE;
/**
* 初始化地理位置消息内容
*
* @param latitude 纬度
* @param longitude 经度
* @param scale 缩放比例
* @param address 详细地址信息
*
* @return 地理位置消息内容
*/
- (instancetype)initWithLatitude:(NSNumber *)latitude
longitude:(NSNumber *)longitude
scale:(NSNumber *)scale
address:(NSString *)address;
JMSG_ASSUME_NONNULL_END
@end