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
|
//
// SDLControlFramePayloadStartServiceAck.h
// SmartDeviceLink-iOS
//
// Created by Joel Fischer on 7/20/17.
// Copyright © 2017 smartdevicelink. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SDLControlFramePayloadType.h"
NS_ASSUME_NONNULL_BEGIN
@interface SDLControlFramePayloadRPCStartServiceAck : NSObject <SDLControlFramePayloadType>
/// Hash ID to identify this service and used when sending an EndService control frame
@property (assign, nonatomic, readonly) int32_t hashId;
/// Max transport unit to be used for this service
@property (assign, nonatomic, readonly) int64_t mtu;
/// A token used to authenticate a websocket connection on app activation.
@property (copy, nonatomic, readonly, nullable) NSString *authToken;
/// The negotiated version of the protocol. Must be in the format "Major.Minor.Patch"
@property (copy, nonatomic, readonly, nullable) NSString *protocolVersion;
/** The transport types for Secondary Transport */
@property (copy, nonatomic, readonly, nullable) NSArray<NSString *> *secondaryTransports;
/** List of transports that are allowed to carry audio service. The values can be either 1 (primary transport) or 2 (secondary transport) and are listed in preferred order. */
@property (copy, nonatomic, readonly, nullable) NSArray<NSNumber *> *audioServiceTransports;
/** List of transports that are allowed to carry video service. The values can be either 1 (primary transport) or 2 (secondary transport) and are listed in preferred order. */
@property (copy, nonatomic, readonly, nullable) NSArray<NSNumber *> *videoServiceTransports;
- (instancetype)initWithHashId:(int32_t)hashId mtu:(int64_t)mtu authToken:(nullable NSString *)authToken protocolVersion:(nullable NSString *)protocolVersion secondaryTransports:(nullable NSArray<NSString *> *)secondaryTransports audioServiceTransports:(nullable NSArray<NSNumber *> *)audioServiceTransports videoServiceTransports:(nullable NSArray<NSNumber *> *)videoServiceTransports;
@end
NS_ASSUME_NONNULL_END
|