Files
yuyin_ios/Pods/mob_sharesdk/ShareSDK/ShareSDK.framework/Headers/SSDKCredential.h

79 lines
1.3 KiB
C
Raw Normal View History

2025-08-08 11:05:33 +08:00
//
// SSDKAuthorizeCredential.h
// ShareSDK
//
// Created by 冯 鸿杰 on 15/2/6.
// Copyright (c) 2015年 掌淘科技. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
*
*/
typedef NS_ENUM(NSUInteger, SSDKCredentialType)
{
/**
*
*/
SSDKCredentialTypeUnknown = 0,
/**
* OAuth 1.x
*/
SSDKCredentialTypeOAuth1x = 1,
/**
* OAuth 2
*/
SSDKCredentialTypeOAuth2 = 2,
//4.0.2 短信
SSDKCredentialTypeSMS = 3,
};
/**
*
*/
@interface SSDKCredential : SSDKDataModel
/**
* token,token条件不足时返回 appsecret
*/
@property (nonatomic, copy) NSString *authCode;
/**
*
*/
@property (nonatomic, copy) NSString *uid;
/**
*
*/
@property (nonatomic, copy) NSString *token;
/**
*
*/
@property (nonatomic, copy) NSString *secret;
/**
*
*/
@property (nonatomic, assign) NSTimeInterval expired;
/**
*
*/
@property (nonatomic) SSDKCredentialType type;
/**
*
*/
@property (nonatomic, strong) NSDictionary *rawData;
/**
* YES NO
*/
@property (nonatomic, readonly) BOOL available;
@end