2 #import <Foundation/Foundation.h>
4 NS_ASSUME_NONNULL_BEGIN
6 @protocol OTDeviceInformationNameUpdateListener
7 - (void)deviceNameUpdated
;
10 @protocol OTDeviceInformationAdapter
12 /* Returns a string like "iPhone3,5" */
15 /* Returns the user-entered name for this device */
16 - (NSString
* _Nullable
)deviceName
;
18 /* Returns a string describing the current os version */
19 - (NSString
*)osVersion
;
21 /* Returns the serial number as a string. */
22 - (NSString
* _Nullable
)serialNumber
;
24 /* register for deviceName updates */
25 - (void)registerForDeviceNameUpdates
:(id
<OTDeviceInformationNameUpdateListener
>)listener
;
29 @interface OTDeviceInformationActualAdapter
: NSObject
<OTDeviceInformationAdapter
>