OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_DEVICE_H_ |
| 6 #define IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_DEVICE_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 @interface PhysicalWebDevice : NSObject |
| 11 |
| 12 // Initializes a physical web device. See below for the description of the |
| 13 // properties. |
| 14 - (instancetype)initWithURL:(NSURL*)url |
| 15 requestURL:(NSURL*)requestURL |
| 16 icon:(NSURL*)icon |
| 17 title:(NSString*)title |
| 18 description:(NSString*)description |
| 19 transmitPower:(int)transmitPower |
| 20 rssi:(int)rssi |
| 21 rank:(double)rank NS_DESIGNATED_INITIALIZER; |
| 22 |
| 23 - (instancetype)init NS_UNAVAILABLE; |
| 24 |
| 25 // |url| is the expanded URL. |
| 26 @property(nonatomic, readonly, retain) NSURL* url; |
| 27 |
| 28 // |requestUrl| is the broadcast URL. |
| 29 @property(nonatomic, readonly, retain) NSURL* requestURL; |
| 30 |
| 31 // |icon| is the URL of the favicon. |
| 32 @property(nonatomic, readonly, retain) NSURL* icon; |
| 33 |
| 34 // |title| is the title of the webpage. |
| 35 @property(nonatomic, readonly, retain) NSString* title; |
| 36 |
| 37 // |description| is a short text description of the webpage content. |
| 38 @property(nonatomic, readonly, retain) NSString* description; |
| 39 |
| 40 // |transmitPower| is the UriBeacon Tx Power Level. |
| 41 @property(nonatomic, readonly) int transmitPower; |
| 42 |
| 43 // |rssi| is the received signal strength indicator (RSSI) of the peripheral, in |
| 44 // decibels. |
| 45 @property(nonatomic, readonly) int rssi; |
| 46 |
| 47 // |rank| of the physical web device returned by the server. |
| 48 @property(nonatomic, readonly) double rank; |
| 49 |
| 50 @end |
| 51 |
| 52 #endif // IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_DEVICE_H_ |
OLD | NEW |