Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
// Copyright 2017 Google
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
//      http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
 
15
#import "GoogleUtilities/Network/Public/GoogleUtilities/GULNetworkConstants.h"
16
#import "GoogleUtilities/Logger/Public/GoogleUtilities/GULLogger.h"
17
 
18
#import <Foundation/Foundation.h>
19
 
20
NSString *const kGULNetworkBackgroundSessionConfigIDPrefix = @"com.gul.network.background-upload";
21
NSString *const kGULNetworkApplicationSupportSubdirectory = @"GUL/Network";
22
NSString *const kGULNetworkTempDirectoryName = @"GULNetworkTemporaryDirectory";
23
const NSTimeInterval kGULNetworkTempFolderExpireTime = 60 * 60;  // 1 hour
24
const NSTimeInterval kGULNetworkTimeOutInterval = 60;            // 1 minute.
25
NSString *const kGULNetworkReachabilityHost = @"app-measurement.com";
26
NSString *const kGULNetworkErrorContext = @"Context";
27
 
28
const int kGULNetworkHTTPStatusOK = 200;
29
const int kGULNetworkHTTPStatusNoContent = 204;
30
const int kGULNetworkHTTPStatusCodeMultipleChoices = 300;
31
const int kGULNetworkHTTPStatusCodeMovedPermanently = 301;
32
const int kGULNetworkHTTPStatusCodeFound = 302;
33
const int kGULNetworkHTTPStatusCodeNotModified = 304;
34
const int kGULNetworkHTTPStatusCodeMovedTemporarily = 307;
35
const int kGULNetworkHTTPStatusCodeNotFound = 404;
36
const int kGULNetworkHTTPStatusCodeCannotAcceptTraffic = 429;
37
const int kGULNetworkHTTPStatusCodeUnavailable = 503;
38
 
39
NSString *const kGULNetworkErrorDomain = @"com.gul.network.ErrorDomain";
40
 
41
GULLoggerService kGULLoggerNetwork = @"[GULNetwork]";