NIMLocationObject.h
883 Bytes
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
//
// NIMLocationObject.h
// NIMLib
//
// Created by Netease.
// Copyright (c) 2015年 Netease. All rights reserved.
//
#import "NIMMessageObjectProtocol.h"
NS_ASSUME_NONNULL_BEGIN
/**
* 位置实例对象
*/
@interface NIMLocationObject : NSObject<NIMMessageObject>
/**
* 位置实例对象初始化方法
*
* @param latitude 纬度
* @param longitude 经度
* @param title 地理位置描述
* @return 位置实例对象
*/
- (instancetype)initWithLatitude:(double)latitude
longitude:(double)longitude
title:(nullable NSString *)title;
/**
* 维度
*/
@property (nonatomic, assign, readonly) double latitude;
/**
* 经度
*/
@property (nonatomic, assign, readonly) double longitude;
/**
* 标题
*/
@property (nullable, nonatomic, copy, readonly) NSString *title;
@end
NS_ASSUME_NONNULL_END