OMCDiagnostics Class Reference

Inherits from NSObject
Declared in OMCDiagnostics.h

Overview

The Diagnostics interface is responsible for adding the appropriate HTTP headers to any MCS URL request. Note this class is typically used indirectly through the OMCMobileBackend setHTTPHeadersOnRequest: method, 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

– setHTTPHeadersOnRequest:

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

- (void)setHTTPHeadersOnRequest:(NSMutableURLRequest *)request

Parameters

request

The URL request.

Discussion

Warning: Raises an NSInvalidArgumentException if request is nil.

Declared In

OMCDiagnostics.h

– setTimestampOnRequest:

Sets the MCS Diagnostics timestamp on the specified URL request.

- (void)setTimestampOnRequest:(NSMutableURLRequest *)request

Parameters

request

The URL request.

Discussion

Warning: Raises an NSInvalidArgumentException if request is nil.

Declared In

OMCDiagnostics.h