OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_DEVICE_H_ | 5 #ifndef IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_DEVICE_H_ |
6 #define IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_DEVICE_H_ | 6 #define IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_DEVICE_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 @interface PhysicalWebDevice : NSObject | 10 @interface PhysicalWebDevice : NSObject |
11 | 11 |
12 // Initializes a physical web device. See below for the description of the | 12 // Initializes a physical web device. See below for the description of the |
13 // properties. | 13 // properties. |
14 - (instancetype)initWithURL:(NSURL*)url | 14 - (instancetype)initWithURL:(NSURL*)url |
15 requestURL:(NSURL*)requestURL | 15 requestURL:(NSURL*)requestURL |
16 icon:(NSURL*)icon | 16 icon:(NSURL*)icon |
17 title:(NSString*)title | 17 title:(NSString*)title |
18 description:(NSString*)description | 18 description:(NSString*)description |
19 transmitPower:(int)transmitPower | 19 transmitPower:(int)transmitPower |
20 rssi:(int)rssi | 20 rssi:(int)rssi |
21 rank:(double)rank | 21 rank:(double)rank |
22 scanTimestamp:(NSDate*)scanTimestamp NS_DESIGNATED_INITIALIZER; | 22 scanTimestamp:(NSDate*)scanTimestamp NS_DESIGNATED_INITIALIZER; |
23 | 23 |
24 - (instancetype)init NS_UNAVAILABLE; | 24 - (instancetype)init NS_UNAVAILABLE; |
25 | 25 |
26 // |url| is the expanded URL. | 26 // |url| is the expanded URL. |
27 @property(nonatomic, readonly, retain) NSURL* url; | 27 @property(nonatomic, readonly, strong) NSURL* url; |
28 | 28 |
29 // |requestUrl| is the broadcast URL. | 29 // |requestUrl| is the broadcast URL. |
30 @property(nonatomic, readonly, retain) NSURL* requestURL; | 30 @property(nonatomic, readonly, strong) NSURL* requestURL; |
31 | 31 |
32 // |icon| is the URL of the favicon. | 32 // |icon| is the URL of the favicon. |
33 @property(nonatomic, readonly, retain) NSURL* icon; | 33 @property(nonatomic, readonly, strong) NSURL* icon; |
34 | 34 |
35 // |title| is the title of the webpage. | 35 // |title| is the title of the webpage. |
36 @property(nonatomic, readonly, retain) NSString* title; | 36 @property(nonatomic, readonly, strong) NSString* title; |
37 | 37 |
38 // |description| is a short text description of the webpage content. | 38 // |description| is a short text description of the webpage content. |
39 @property(nonatomic, readonly, retain) NSString* description; | 39 @property(nonatomic, readonly, strong) NSString* description; |
40 | 40 |
41 // |transmitPower| is the UriBeacon Tx Power Level. | 41 // |transmitPower| is the UriBeacon Tx Power Level. |
42 @property(nonatomic, readonly) int transmitPower; | 42 @property(nonatomic, readonly) int transmitPower; |
43 | 43 |
44 // |rssi| is the received signal strength indicator (RSSI) of the peripheral, in | 44 // |rssi| is the received signal strength indicator (RSSI) of the peripheral, in |
45 // decibels. | 45 // decibels. |
46 @property(nonatomic, readonly) int rssi; | 46 @property(nonatomic, readonly) int rssi; |
47 | 47 |
48 // |rank| of the physical web device returned by the server. | 48 // |rank| of the physical web device returned by the server. |
49 @property(nonatomic, readonly) double rank; | 49 @property(nonatomic, readonly) double rank; |
50 | 50 |
51 // |scanTimestamp| is the time the URL was most recently seen. | 51 // |scanTimestamp| is the time the URL was most recently seen. |
52 @property(nonatomic, retain) NSDate* scanTimestamp; | 52 @property(nonatomic, strong) NSDate* scanTimestamp; |
53 | 53 |
54 @end | 54 @end |
55 | 55 |
56 #endif // IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_DEVICE_H_ | 56 #endif // IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_DEVICE_H_ |
OLD | NEW |