From 7b02207537d35bfa1714bf8beafc921f717d100a Mon Sep 17 00:00:00 2001
From: 单军华
Date: Wed, 11 Jul 2018 10:47:42 +0800
Subject: [PATCH] 首次上传

---
 screendisplay/Pods/UMengUShare/UShareSDK/SocialLibraries/Sina/SinaSDK/WeiboSDK.h |  573 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 573 insertions(+), 0 deletions(-)

diff --git a/screendisplay/Pods/UMengUShare/UShareSDK/SocialLibraries/Sina/SinaSDK/WeiboSDK.h b/screendisplay/Pods/UMengUShare/UShareSDK/SocialLibraries/Sina/SinaSDK/WeiboSDK.h
new file mode 100755
index 0000000..db0feea
--- /dev/null
+++ b/screendisplay/Pods/UMengUShare/UShareSDK/SocialLibraries/Sina/SinaSDK/WeiboSDK.h
@@ -0,0 +1,573 @@
+//
+//  WeiboSDKHeaders.h
+//  WeiboSDKDemo
+//
+//  Created by Wade Cheng on 4/3/13.
+//  Copyright (c) 2013 SINA iOS Team. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <UIKit/UIKit.h>
+
+#import "WBHttpRequest.h"
+#import "WBHttpRequest+WeiboToken.h"
+
+typedef NS_ENUM(NSInteger, WeiboSDKResponseStatusCode)
+{
+    WeiboSDKResponseStatusCodeSuccess               = 0,//������
+    WeiboSDKResponseStatusCodeUserCancel            = -1,//������������������
+    WeiboSDKResponseStatusCodeSentFail              = -2,//������������
+    WeiboSDKResponseStatusCodeAuthDeny              = -3,//������������
+    WeiboSDKResponseStatusCodeUserCancelInstall     = -4,//���������������������������������
+    WeiboSDKResponseStatusCodePayFail               = -5,//������������
+    WeiboSDKResponseStatusCodeShareInSDKFailed      = -8,//������������ ���������response UserInfo
+    WeiboSDKResponseStatusCodeUnsupport             = -99,//������������������
+    WeiboSDKResponseStatusCodeUnknown               = -100,
+};
+
+@protocol WeiboSDKDelegate;
+@protocol WBHttpRequestDelegate;
+@class WBBaseRequest;
+@class WBBaseResponse;
+@class WBMessageObject;
+@class WBImageObject;
+@class WBBaseMediaObject;
+@class WBHttpRequest;
+
+/**
+ ������SDK���������
+ */
+@interface WeiboSDK : NSObject
+
+/**
+ ������������������������������������������������
+ @return ���������������YES������������������NO
+ */
++ (BOOL)isWeiboAppInstalled;
+
+/**
+ ���������������������������������������������������������
+ @return ������������������YES������������������������NO
+ */
++ (BOOL)isCanShareInWeiboAPP;
+
+/**
+ ���������������������������������������������������SSO������
+ @return ������������������YES������������������������NO
+ */
++ (BOOL)isCanSSOInWeiboApp;
+
+/**
+ ���������������������������
+ @return ������������������YES���������������NO
+ */
++ (BOOL)openWeiboApp;
+
+
+/**
+ ������������������������������itunes������������
+ @return ������������������������itunes������������
+ */
++ (NSString *)getWeiboAppInstallUrl;
+
+/**
+ ������������������SDK������������
+ @return ������������SDK������������
+ */
++ (NSString *)getSDKVersion;
+
+
+extern NSString * const WeiboSDKGetAidSucessNotification;
+extern NSString * const WeiboSDKGetAidFailNotification;
+/**
+ ������������������SDK���aid
+ ���������aid������������ nil ,��������� nil ������������������ aid ������
+ ������������������ aid ���������������������������SDK��������������� WeiboSDKGetAidSucessNotification ��������������������������� aid ������
+ ���������������������SDK��������������� WeiboSDKGetAidFailNotification ��������������������������� NSError ���������
+ @return aid ������������������������������������������������
+ */
++ (NSString *)getWeiboAid;
+
+
+/**
+ ���������������������������������������������
+ @param appKey ���������������������������������appKey
+ @return ������������������YES���������������NO
+ */
++ (BOOL)registerApp:(NSString *)appKey;
+
+/**
+ ���������������������������������URL���������������������������������������
+ 
+ ��������� application:openURL:sourceApplication:annotation:������application:handleOpenURL���������
+ @param url ������������������������URL
+ @param delegate WeiboSDKDelegate������������������������������������������
+ @see WeiboSDKDelegate
+ */
++ (BOOL)handleOpenURL:(NSURL *)url delegate:(id<WeiboSDKDelegate>)delegate;
+
+/**
+ ���������������������������������������������������������
+ 
+ ������������������������������������������������������������������������������������������������������������������������������ [WeiboSDKDelegate didReceiveWeiboResponse:] ���������������������������������������������
+ 
+ @param request ���������������������
+ 
+ @see [WeiboSDKDelegate didReceiveWeiboResponse:]
+ @see WBBaseResponse
+ */
++ (BOOL)sendRequest:(WBBaseRequest *)request;
+
+/**
+ ���������������������������������������������������������������������������������������������������������������
+ 
+ ������������������������������������������������������������������������������������������������������������������������
+ 
+ @param response ���������������������
+ @see WBBaseRequest
+ */
++ (BOOL)sendResponse:(WBBaseResponse *)response;
+
+/**
+ ������WeiboSDK���������������
+ 
+ ���������������������������WeiboSDK��������������������������������������������������������������������������������������������������� NO
+ @param enabled ���������������WeiboSDK���������������
+ */
++ (void)enableDebugMode:(BOOL)enabled;
+
+/**
+ ���������������������������
+ ���������������������token���������
+ @param token ������������������������������Token
+ @param delegate WBHttpRequestDelegate���������������������������SDK���������������������������������������������
+ @param tag ���������������TAG,���������������WBHttpRequest���������tag������������
+ 
+ */
++ (void)logOutWithToken:(NSString *)token delegate:(id<WBHttpRequestDelegate>)delegate withTag:(NSString*)tag;
+
+/**
+ ������������������������������������H5���������SDK���������������������������������������������������SDK������������������
+ 
+ ������������������������������������������������������
+ ������������������ webView ���������������������H5���������
+ @param uid ������id
+ @param mid ������id
+ @param aid ������id
+*/
+
+//���������������������������������������������������������������������������������
++ (void)linkToUser:(NSString *)uid;
+
+//���������������������������������������������������������������������������������������������������
++ (void)linkToSingleBlog:(NSString *)uid blogID:(NSString *)mid;
+
+//���������������������������������������
++ (void)linkToArticle:(NSString *)aid;
+
+//���������������
++ (void)shareToWeibo:(NSString *)content;
+
+//���������������������
++ (void)commentToWeibo:(NSString *)mid;
+
+//������������������������������
++ (void)linkToSearch:(NSString *)keyword;
+
+//������������������������������
++ (void)linkToTimeLine;
+
+//���������������������������������
++ (void)linkToProfile;
+
+@end
+
+/**
+ ���������������������������������������������������������
+ */
+@protocol WeiboSDKDelegate <NSObject>
+
+/**
+ ������������������������������������������������
+ 
+ ��������������������������������������������������������������������������������������������������������� [WeiboSDK sendResponse:] ������������������������
+ @param request ���������������������
+ */
+- (void)didReceiveWeiboRequest:(WBBaseRequest *)request;
+
+/**
+ ������������������������������������������������
+ 
+ ��������������������������������������������������������������������������������������� WBBaseResponse.userInfo ���������������������������������
+ @param response ���������������������
+ */
+- (void)didReceiveWeiboResponse:(WBBaseResponse *)response;
+
+@end
+
+
+#pragma mark - DataTransferObject and Base Request/Response
+
+/**
+ ������������������������������������������������������������������������
+ */
+@interface WBDataTransferObject : NSObject
+
+/**
+ ���������������������������������������������������������������������������������������
+ 
+ ��������������������������������������������� request ��������������� userInfo ���������������������������������
+ 
+ @warning userInfo������������������������������ `NSCoding` ���������������������������������������������������������
+ @warning ���������������������������������10M
+ */
+@property (nonatomic, strong) NSDictionary *userInfo;
+
+
+/**
+ ������������������������SDK���������
+ 
+ ������������������������������������������sdkVersion���������SDK������������������������������������������������������sdkVersion������������������SDK���������
+ */
+@property (strong, nonatomic, readonly) NSString *sdkVersion;
+
+
+/**
+ ���������������������������������������������������������������������������������������
+ 
+ ���������������YES���������������������������������������Alert���������������������������������App���������������������������YES
+ */
+@property (nonatomic, assign) BOOL shouldOpenWeiboAppInstallPageIfNotInstalled;
+
+
+@end
+
+
+/**
+ ������SDK������������������������
+ */
+@interface WBBaseRequest : WBDataTransferObject
+
+/**
+ ������������ WBBaseRequest ������
+ 
+ @return ������������*���������������*WBBaseRequest������
+ */
++ (id)request;
+
+@end
+
+
+/**
+ ������SDK������������������������
+ */
+@interface WBBaseResponse : WBDataTransferObject
+
+/**
+ ��������� request ���������������������������
+ 
+ ������������ response ������������������������������������������������������ requestUserInfo ��������������� request.userInfo ������������������
+ 
+ @see WBBaseRequest.userInfo
+ */
+@property (strong, nonatomic, readonly) NSDictionary *requestUserInfo;
+
+/**
+ ���������������
+ 
+ ���������������������������statusCode���������������������������
+ */
+@property (nonatomic, assign) WeiboSDKResponseStatusCode statusCode;
+
+/**
+ ������������ WBBaseResponse ������
+ 
+ @return ������������*���������������*WBBaseResponse������
+ */
++ (id)response;
+
+@end
+
+#pragma mark - Authorize Request/Response
+
+/**
+ ������������������������������������������������������������
+ 
+ ��������������������������������������������������������������� [WeiboSDK sendRequest:] ��������� ������������������������������ WBAuthorizeRequest ������������������
+ ��������������������������������������������������������������������� WBAuthorizeResponse ������������������
+ */
+@interface WBAuthorizeRequest : WBBaseRequest
+
+/**
+ ������������������������������������������������������������������`http://`
+ 
+ ������ http://open.weibo.com/wiki/%E6%8E%88%E6%9D%83%E6%9C%BA%E5%88%B6%E8%AF%B4%E6%98%8E#.E5.AE.A2.E6.88.B7.E7.AB.AF.E9.BB.98.E8.AE.A4.E5.9B.9E.E8.B0.83.E9.A1.B5
+ 
+ @warning ���������������������������������������������������������������������������������������������������������������������������������`http://`
+ @warning ���������������������������1K
+ */
+@property (nonatomic, strong) NSString *redirectURI;
+
+/**
+ ���������������������������������scope���������scrope���������������
+ 
+ ������ http://open.weibo.com/wiki/%E6%8E%88%E6%9D%83%E6%9C%BA%E5%88%B6%E8%AF%B4%E6%98%8E#scope
+ 
+ @warning ������������1K
+ */
+@property (nonatomic, strong) NSString *scope;
+
+/**
+ ������������������������������������������������������������������������SSO���������������������SDK���������Webview������������
+ 
+ ���������������YES���������������������������������������������������������������������������SSO������������������������SDK���������Webview���������������
+
+ ���������������NO������������ shouldOpenWeiboAppInstallPageIfNotInstalled ������������������������������/������������������������
+ 
+ ���������YES
+ */
+@property (nonatomic, assign) BOOL shouldShowWebViewForAuthIfCannotSSO;
+
+@end
+
+
+/**
+ ������������������������������������������������������������������������������������������������
+ 
+ WBAuthorizeResponse ��������������������������� userID ���accessToken ��� expirationDate ������������������������������������������������������������������ refresh_token ��������������������������� userInfo ���
+ */
+@interface WBAuthorizeResponse : WBBaseResponse
+
+/**
+ ������ID
+ */
+@property (nonatomic, strong) NSString *userID;
+
+/**
+ ������������
+ */
+@property (nonatomic, strong) NSString *accessToken;
+
+/**
+ ������������������
+ */
+@property (nonatomic, strong) NSDate *expirationDate;
+
+/**
+ ���������������������������������������������������������������
+ */
+@property (nonatomic, strong) NSString *refreshToken;
+
+@end
+
+#pragma mark - ProvideMessageForWeibo Request/Response
+
+/**
+ ������������������������������������������������������������������
+ */
+@interface WBProvideMessageForWeiboRequest : WBBaseRequest
+
+@end
+
+/**
+ ������������������������������������������������������������������������������������������������������������
+ */
+@interface WBProvideMessageForWeiboResponse : WBBaseResponse
+
+/**
+ ���������������������������������
+ */
+@property (nonatomic, strong) WBMessageObject *message;
+
+/**
+ ������������ WBProvideMessageForWeiboResponse ������
+ @param message ���������������������������������������������������
+ @return ������������*���������������*WBProvideMessageForWeiboResponse������
+ */
++ (id)responseWithMessage:(WBMessageObject *)message;
+
+@end
+
+#pragma mark - SendMessageToWeibo Request/Response
+
+/**
+ ���������������������������������������������������������������������
+ */
+@interface WBSendMessageToWeiboRequest : WBBaseRequest
+
+/**
+ ���������������������������������
+ */
+@property (nonatomic, strong) WBMessageObject *message;
+
+/**
+ ������������ WBSendMessageToWeiboRequest ������
+ ������������������������[WeiboSDK sendRequest:]���������������������������������������������������������������������������������������������������������
+ ��������� shouldOpenWeiboAppInstallPageIfNotInstalled ������������������������������/������������������������
+ @param message ���������������������������������������������
+ @return ������������*���������������*WBSendMessageToWeiboRequest������
+ */
++ (id)requestWithMessage:(WBMessageObject *)message;
+
+/**
+ ������������ WBSendMessageToWeiboRequest ������
+ 
+ ���������������������������������������������������������������������������,������������������������������
+ ������������������������������������������������������������������������������������������������������������������������SDK������������������
+ 
+ @param message ������������������������������������
+ @param authRequest ������������������,���access_token������������������������������,���access_token������������������������SDK������������������������������������������������������������
+ @param access_token ������������������������������Token,������������������������������������������������������������,������������token���������������
+ @return ������������*���������������*WBSendMessageToWeiboRequest������
+ */
++ (id)requestWithMessage:(WBMessageObject *)message
+                authInfo:(WBAuthorizeRequest *)authRequest
+            access_token:(NSString *)access_token;
+
+@end
+
+/**
+ WBSendMessageToWeiboResponse
+ */
+@interface WBSendMessageToWeiboResponse : WBBaseResponse
+
+/**
+ ���������������������������������������������������������������������������������������������������������
+ */
+@property (nonatomic,strong) WBAuthorizeResponse *authResponse;
+@end
+
+
+
+#pragma mark - MessageObject / ImageObject
+
+/**
+ ������������������������������������������������������������������
+ 
+ ���������������������������������������������������������������������������������������������������������������������������������������������������������������
+ */
+@interface WBMessageObject : NSObject
+
+/**
+ ���������������������
+ 
+ @warning ������������2000���������
+ */
+@property (nonatomic, strong) NSString *text;
+
+/**
+ ���������������������
+ 
+ @see WBImageObject
+ */
+@property (nonatomic, strong) WBImageObject *imageObject;
+
+/**
+ ������������������������
+ 
+ @see WBBaseMediaObject
+ */
+@property (nonatomic, strong) WBBaseMediaObject *mediaObject;
+
+/**
+ ������������ WBMessageObject ������
+ 
+ @return ������������*���������������*WBMessageObject������
+ */
++ (id)message;
+
+@end
+
+/**
+ ������������������������������������
+ */
+@interface WBImageObject : NSObject
+
+/**
+ ������������������������
+ 
+ @warning ������������������10M
+ */
+@property (nonatomic, strong) NSData *imageData;
+
+/**
+ ������������ WBImageObject ������
+ 
+ @return ������������*���������������*WBImageObject������
+ */
++ (id)object;
+
+/**
+ ������������ UIImage ������
+ 
+ @return ������������*���������������*UIImage������
+ */
+- (UIImage *)image;
+
+@end
+
+#pragma mark - Message Media Objects
+
+/**
+ ���������������������������������������������,������������������������,���������������������������linkcard������,������������������������������
+ */
+@interface WBBaseMediaObject : NSObject
+
+/**
+ ������������ID������������������������������������������
+ 
+ ���������������������������������������������������������������������������������������������������������������������������������������
+ @warning ���������������������������255
+ */
+@property (nonatomic, strong) NSString *objectID;
+
+/**
+ ���������������������
+ @warning ���������������������������1k
+ */
+@property (nonatomic, strong) NSString *title;
+
+/**
+ ���������������������
+ @warning ������������1k
+ */
+@property (nonatomic, strong) NSString *description;
+
+/**
+ ������������������������
+ @warning ������������32k
+ */
+@property (nonatomic, strong) NSData *thumbnailData;
+
+/**
+ ���������������������������������������������������������������scheme
+ @warning ������������255
+ */
+@property (nonatomic, strong) NSString *scheme;
+
+/**
+ ������������ WBBaseMediaObject ������
+ 
+ @return ������������*���������������*WBBaseMediaObject������
+ */
++ (id)object;
+
+@end
+
+#pragma mark - Message WebPage Objects
+
+/**
+ ������������������������������������
+ */
+@interface WBWebpageObject : WBBaseMediaObject
+
+/**
+ ���������url������
+ 
+ @warning ���������������������������������255
+ */
+@property (nonatomic, strong) NSString *webpageUrl;
+
+@end
+
+

--
Gitblit v1.8.0