| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- //
- // CloudAbilityDataSource.m
- // FunSDKDemo
- //
- // Created by XM on 2018/12/27.
- // Copyright © 2018年 XM. All rights reserved.
- //
- #import "CloudAbilityDataSource.h"
- @implementation CloudAbilityDataSource
- #pragma mark - 根据能力级读取云服务状态
- - (NSString *)getCloudString {
- NSArray *array = [self getCloudArray];
- return array[_cloudState];
- }
- - (NSString *)getVideoString {
- NSArray *array = [self getPicVideoArray];
- if (_VideoOrPicState == VideoOrPicCloudStateNone || _VideoOrPicState == VideoOrPicCloudState_Pic) {
- return array[0];
- }
- return array[1];
- }
- - (NSString *)getPicString {
- NSArray *array = [self getPicVideoArray];
- if (_VideoOrPicState == VideoOrPicCloudStateNone || _VideoOrPicState == VideoOrPicCloudState_Video) {
- return array[0];
- }
- return array[1];
- }
- - (NSArray *)getCloudArray {
- NSArray *array = @[TS("not_suport"), TS("in_normal_use"), TS("not_opened"), TS("out_of_date")];
- return array;
- }
- - (NSArray *)getPicVideoArray {
- NSArray *array = @[TS("not_opened"), TS("in_normal_use")];
- return array;
- }
- @end
|