VOOSMPHTTPDownloadFailure.h
1 /************************************************************************
2 VisualOn Proprietary
3 Copyright (c) 2012-2016, VisualOn, Inc. All Rights Reserved
4 
5 All data and information contained in or disclosed by this document are
6 confidential and proprietary information of VisualOn, Inc, and all rights
7 therein are expressly reserved. By accepting this material, the recipient
8 agrees that this material and the information contained therein are held
9 in confidence and in trust. The material may only be used and/or disclosed
10 as authorized in a license agreement controlling such use and disclosure.
11 ************************************************************************/
12 
13 #import <Foundation/Foundation.h>
14 
15 
20 typedef enum {
22  VO_OSMP_HTTP_CONNECT_FAILED = 0x00000000,
23 
25  VO_OSMP_HTTP_INVALID_RESPONSE = 0x00000001,
26 
28  VO_OSMP_HTTP_CLIENT_ERROR = 0x00000002,
29 
31  VO_OSMP_HTTP_SERVER_ERROR = 0x00000003,
32 
34  VO_OSMP_HTTP_DOWNLOAD_FAILURE_REASON_MAX = 0xFFFFFFFF
35 
36 } VO_OSMP_HTTP_DOWNLOAD_FAILURE_REASON;
37 
38 
39 @protocol VOOSMPHTTPDownloadFailure <NSObject>
40 
46 @property (readonly, retain, getter=getURL) NSString* URL;
47 
53 @property (readonly, assign, getter=getReason) VO_OSMP_HTTP_DOWNLOAD_FAILURE_REASON reason;
54 
67 @property (readonly, retain, getter=getResponse) NSString* response;
68 
69 @end
70