PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/Elements/GDataBatchStatus.h

http://macfuse.googlecode.com/
C++ Header | 51 lines | 15 code | 11 blank | 25 comment | 0 complexity | fff7b63b91f886fb5407fd4f4bc4826a MD5 | raw file
 1/* Copyright (c) 2007 Google Inc.
 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
16//
17//  GDataBatchStatus.h
18//
19
20#import "GDataObject.h"
21
22@class GDataFeedBase;
23
24// a batch response status
25//  <batch:status  code="404"
26//    reason="Bad request"
27//    content-type="application/xml">
28//    <errors>
29//      <error type="request" reason="Cannot find item"/>
30//    </errors>
31//  </batch:status>
32
33@interface GDataBatchStatus : GDataObject <GDataExtension> {
34}
35
36+ (GDataBatchStatus *)batchStatusWithCode:(NSInteger)code
37                                   reason:(NSString *)reason;
38
39- (NSString *)reason;
40- (void)setReason:(NSString *)str;
41
42- (NSNumber *)code;
43- (void)setCode:(NSNumber *)val;
44
45- (NSString *)contentType;
46- (void)setContentType:(NSString *)str;
47
48- (NSString *)stringValue;
49- (void)setStringValue:(NSString *)str;
50
51@end