解决了语音上传到问题,接下来要解决下载播放问题
This commit is contained in:
33
Pods/Qiniu/QiniuSDK/Storage/QNUpToken.h
generated
Normal file
33
Pods/Qiniu/QiniuSDK/Storage/QNUpToken.h
generated
Normal file
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// QNUpToken.h
|
||||
// QiniuSDK
|
||||
//
|
||||
// Created by bailong on 15/6/7.
|
||||
// Copyright (c) 2015年 Qiniu. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface QNUpToken : NSObject
|
||||
|
||||
+ (instancetype)parse:(NSString *)token;
|
||||
|
||||
@property (assign, nonatomic, readonly) long deadline;
|
||||
@property (copy , nonatomic, readonly) NSString *access;
|
||||
@property (copy , nonatomic, readonly) NSString *bucket;
|
||||
@property (copy , nonatomic, readonly) NSString *token;
|
||||
|
||||
@property (readonly) BOOL isValid;
|
||||
@property (readonly) BOOL hasReturnUrl;
|
||||
|
||||
+ (instancetype)getInvalidToken;
|
||||
|
||||
- (NSString *)index;
|
||||
|
||||
/// 是否在未来 duration 分钟内有效
|
||||
- (BOOL)isValidForDuration:(long)duration;
|
||||
|
||||
/// 在是否在 date 之前有效
|
||||
- (BOOL)isValidBeforeDate:(NSDate *)date;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user