/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. // GDataBatchStatus.h
  17. //
  18. #import "GDataObject.h"
  19. @class GDataFeedBase;
  20. // a batch response status
  21. // <batch:status code="404"
  22. // reason="Bad request"
  23. // content-type="application/xml">
  24. // <errors>
  25. // <error type="request" reason="Cannot find item"/>
  26. // </errors>
  27. // </batch:status>
  28. @interface GDataBatchStatus : GDataObject <GDataExtension> {
  29. }
  30. + (GDataBatchStatus *)batchStatusWithCode:(NSInteger)code
  31. reason:(NSString *)reason;
  32. - (NSString *)reason;
  33. - (void)setReason:(NSString *)str;
  34. - (NSNumber *)code;
  35. - (void)setCode:(NSNumber *)val;
  36. - (NSString *)contentType;
  37. - (void)setContentType:(NSString *)str;
  38. - (NSString *)stringValue;
  39. - (void)setStringValue:(NSString *)str;
  40. @end