OMCDiagnostics Class Reference

Inherits from NSObject
Declared in OMCDiagnostics.h

Overview

The Diagnostics interface is responsible for adding the appropriate HTTP headers to any OMCe URL request. Note this class is typically used indirectly through [OMCMobileBackend setHTTPHeadersOnURLRequest:], so this class would not need to be used directly.

  mobileBackend

The mobile backend that is being tracked.

@property (readonly, nonatomic, weak) OMCMobileBackend *mobileBackend

Declared In

OMCDiagnostics.h

  deviceID

The device ID HTTP header value. Uses the value returned by [UIDevice identifierForVendor].

@property (readonly, nonatomic) NSString *deviceID

Declared In

OMCDiagnostics.h

  sessionID

The session ID HTTP header value. Uses the value returned by getpid().

@property (readonly, nonatomic) NSString *sessionID

Declared In

OMCDiagnostics.h

  requestTimestamp

The request timestamp HTTP header value. Uses the value returned by [NSDate date].

@property (readonly, nonatomic) NSString *requestTimestamp

Declared In

OMCDiagnostics.h

– setHTTPHeadersOnURLRequest:

Sets all the required OMCe Diagnostics headers on the specified URL request.

- (void)setHTTPHeadersOnURLRequest:(NSMutableURLRequest *)request

Parameters

request

The URL request.

Discussion

Warning: Raises an NSInvalidArgumentException if request is nil.

See Also

  • [OMCMobileBackend setHTTPHeadersOnURLRequest:]

Declared In

OMCDiagnostics.h

– setTimestampOnURLRequest:

Sets the OMCe Diagnostics timestamp on the specified URL request.

- (void)setTimestampOnURLRequest:(NSMutableURLRequest *)request

Parameters

request

The URL request.

Discussion

Warning: Raises an NSInvalidArgumentException if request is nil.

See Also

  • [OMCMobileBackend setHTTPHeadersOnURLRequest:]

Declared In

OMCDiagnostics.h