FMLiveSwitchConnectionStateRecord Class Reference

Represents a single connection state transition record with timing information. More...

Instance Methods

(NSDate *) - dateTime
 Gets the UTC datetime when the state transition occurred. More...
 
(NSString *) - descriptionWithPreviousTime:
 Creates a string representation of the state transition. More...
 
(instancetype) - init
 
(void) - setDateTime:
 Sets the UTC datetime when the state transition occurred. More...
 
(void) - setState:
 Sets the connection state. More...
 
(void) - setTimeStamp:
 Sets the millisecond timestamp when the state transition occurred. More...
 
(FMLiveSwitchConnectionState) - state
 Gets the connection state. More...
 
(long long) - timeStamp
 Gets the millisecond timestamp when the state transition occurred. More...
 

Class Methods

(FMLiveSwitchConnectionStateRecord *) + connectionStateRecord
 

Detailed Description

Represents a single connection state transition record with timing information.

Method Documentation

◆ connectionStateRecord

+ (FMLiveSwitchConnectionStateRecord*) connectionStateRecord

◆ dateTime

- (NSDate*) dateTime

Gets the UTC datetime when the state transition occurred.

◆ descriptionWithPreviousTime:

- (NSString*) descriptionWithPreviousTime: (long long)  previousTime

Creates a string representation of the state transition.

Parameters
previousTimeThe timestamp of the previous state transition in milliseconds. Use 0 for the initial state.
Returns
A formatted string describing the state transition and duration if applicable.

◆ init

- (instancetype) init

◆ setDateTime:

- (void) setDateTime: (NSDate *)  value

Sets the UTC datetime when the state transition occurred.

◆ setState:

- (void) setState: (FMLiveSwitchConnectionState)  value

Sets the connection state.

◆ setTimeStamp:

- (void) setTimeStamp: (long long)  value

Sets the millisecond timestamp when the state transition occurred.

◆ state

- (FMLiveSwitchConnectionState) state

Gets the connection state.

◆ timeStamp

- (long long) timeStamp

Gets the millisecond timestamp when the state transition occurred.