diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2020-08-27 16:15:33 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2020-08-27 16:15:33 -0400 |
commit | ebaf2cdcfd4792041764b116865f7d9a162423d3 (patch) | |
tree | 2e53f7c2f25b42e68fbc6e34f7bba1d86532c00e /SmartDeviceLink/SDLVideoStreamingCapability.m | |
parent | 2cb26cbf102bdb309a67880182041393b5ae2559 (diff) | |
download | sdl_ios-ebaf2cdcfd4792041764b116865f7d9a162423d3.tar.gz |
In progress moving of files
Diffstat (limited to 'SmartDeviceLink/SDLVideoStreamingCapability.m')
-rw-r--r-- | SmartDeviceLink/SDLVideoStreamingCapability.m | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/SmartDeviceLink/SDLVideoStreamingCapability.m b/SmartDeviceLink/SDLVideoStreamingCapability.m deleted file mode 100644 index 3239f5597..000000000 --- a/SmartDeviceLink/SDLVideoStreamingCapability.m +++ /dev/null @@ -1,103 +0,0 @@ -// -// SDLVideoStreamingCapability.m -// SmartDeviceLink-iOS -// -// Created by Brett McIsaac on 7/31/17. -// Copyright © 2017 smartdevicelink. All rights reserved. -// - -#import "SDLImageResolution.h" -#import "SDLVideoStreamingCapability.h" -#import "SDLVideoStreamingFormat.h" - -#import "NSMutableDictionary+Store.h" -#import "SDLRPCParameterNames.h" - -NS_ASSUME_NONNULL_BEGIN - -@implementation SDLVideoStreamingCapability - -- (instancetype)initWithPreferredResolution:(nullable SDLImageResolution *)preferredResolution maxBitrate:(int32_t)maxBitrate supportedFormats:(nullable NSArray<SDLVideoStreamingFormat *> *)supportedFormats hapticDataSupported:(BOOL)hapticDataSupported { - return [self initWithPreferredResolution:preferredResolution maxBitrate:@(maxBitrate) supportedFormats:supportedFormats hapticDataSupported:@(hapticDataSupported) diagonalScreenSize:nil ppi:nil scale:nil]; -} - -- (instancetype)initWithPreferredResolution:(nullable SDLImageResolution *)preferredResolution maxBitrate:(int32_t)maxBitrate supportedFormats:(nullable NSArray<SDLVideoStreamingFormat *> *)supportedFormats hapticDataSupported:(BOOL)hapticDataSupported diagonalScreenSize:(float)diagonalScreenSize pixelPerInch:(float)pixelPerInch scale:(float)scale { - return [self initWithPreferredResolution:preferredResolution maxBitrate:@(maxBitrate) supportedFormats:supportedFormats hapticDataSupported:@(hapticDataSupported) diagonalScreenSize:@(diagonalScreenSize) ppi:@(pixelPerInch) scale:@(scale)]; -} - -- (instancetype)initWithPreferredResolution:(nullable SDLImageResolution *)preferredResolution maxBitrate:(nullable NSNumber *)maxBitrate supportedFormats:(nullable NSArray<SDLVideoStreamingFormat *> *)supportedFormats hapticDataSupported:(nullable NSNumber *)hapticDataSupported diagonalScreenSize:(nullable NSNumber *)diagonalScreenSize ppi:(nullable NSNumber *)pixelPerInch scale:(nullable NSNumber *)scale { - self = [self init]; - if (!self) { - return self; - } - - self.maxBitrate = maxBitrate; - self.preferredResolution = preferredResolution; - self.supportedFormats = supportedFormats; - self.hapticSpatialDataSupported = hapticDataSupported; - self.diagonalScreenSize = diagonalScreenSize; - self.pixelPerInch = pixelPerInch; - self.scale = scale; - - return self; -} - -- (void)setPreferredResolution:(nullable SDLImageResolution *)preferredResolution { - [self.store sdl_setObject:preferredResolution forName:SDLRPCParameterNamePreferredResolution]; -} - -- (nullable SDLImageResolution *)preferredResolution { - return [self.store sdl_objectForName:SDLRPCParameterNamePreferredResolution ofClass:SDLImageResolution.class error:nil]; -} - -- (void)setMaxBitrate:(nullable NSNumber<SDLInt> *)maxBitrate { - [self.store sdl_setObject:maxBitrate forName:SDLRPCParameterNameMaxBitrate]; -} - -- (nullable NSNumber<SDLInt> *)maxBitrate { - return [self.store sdl_objectForName:SDLRPCParameterNameMaxBitrate ofClass:NSNumber.class error:nil]; -} - -- (void)setSupportedFormats:(nullable NSArray<SDLVideoStreamingFormat *> *)supportedFormats { - [self.store sdl_setObject:supportedFormats forName:SDLRPCParameterNameSupportedFormats]; -} - -- (nullable NSArray<SDLVideoStreamingFormat *> *)supportedFormats { - return [self.store sdl_objectsForName:SDLRPCParameterNameSupportedFormats ofClass:SDLVideoStreamingFormat.class error:nil]; -} - -- (void)setHapticSpatialDataSupported:(nullable NSNumber<SDLBool> *)hapticSpatialDataSupported { - [self.store sdl_setObject:hapticSpatialDataSupported forName:SDLRPCParameterNameHapticSpatialDataSupported]; -} - -- (nullable NSNumber<SDLBool> *)hapticSpatialDataSupported { - return [self.store sdl_objectForName:SDLRPCParameterNameHapticSpatialDataSupported ofClass:NSNumber.class error:nil]; -} - -- (void)setDiagonalScreenSize:(nullable NSNumber<SDLFloat> *)diagonalScreenSize { - [self.store sdl_setObject:diagonalScreenSize forName:SDLRPCParameterNameDiagonalScreenSize]; -} - -- (nullable NSNumber<SDLFloat> *)diagonalScreenSize { - return [self.store sdl_objectForName:SDLRPCParameterNameDiagonalScreenSize ofClass:NSNumber.class error:nil]; -} - -- (void)setPixelPerInch:(nullable NSNumber<SDLFloat> *)pixelPerInch { - [self.store sdl_setObject:pixelPerInch forName:SDLRPCParameterNamePixelPerInch]; -} - -- (nullable NSNumber<SDLFloat> *)pixelPerInch { - return [self.store sdl_objectForName:SDLRPCParameterNamePixelPerInch ofClass:NSNumber.class error:nil]; -} - -- (void)setScale:(nullable NSNumber<SDLFloat> *)scale { - [self.store sdl_setObject:scale forName:SDLRPCParameterNameScale]; -} - -- (nullable NSNumber<SDLFloat> *)scale { - return [self.store sdl_objectForName:SDLRPCParameterNameScale ofClass:NSNumber.class error:nil]; -} - -@end - -NS_ASSUME_NONNULL_END |