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 *mobileBackendDeclared In
OMCDiagnostics.h
  deviceID
	The device ID HTTP header value.
Uses the value returned by [UIDevice identifierForVendor].
@property (readonly, nonatomic) NSString *deviceIDDeclared In
OMCDiagnostics.h
  sessionID
	The session ID HTTP header value.
Uses the value returned by getpid().
@property (readonly, nonatomic) NSString *sessionIDDeclared In
OMCDiagnostics.h
  requestTimestamp
	The request timestamp HTTP header value.
Uses the value returned by [NSDate date].
@property (readonly, nonatomic) NSString *requestTimestampDeclared In
OMCDiagnostics.h
– setHTTPHeadersOnRequest:
	Sets all the required MCS Diagnostics headers on the specified URL request.
- (void)setHTTPHeadersOnRequest:(NSMutableURLRequest *)requestParameters
| 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 *)requestParameters
| request | The URL request. | 
|---|
Discussion
Warning: Raises an NSInvalidArgumentException if request is nil.
Declared In
OMCDiagnostics.h