FMLiveSwitchCertificateStats Class Reference

Certificate stats. More...

Instance Methods

(NSString *) - certificateBase64
 Gets the certificate in Base64 format. More...
 
(void) - deserializePropertiesWithKey:valueJson:
 Deserializes the properties. More...
 
(NSString *) - fingerprint
 Gets the fingerprint. More...
 
(NSString *) - fingerprintAlgorithm
 Gets the fingerprint algorithm. More...
 
(instancetype) - init
 
(bool) - isEquivalentWithInstance:
 Checks if a certificate is equivalent to this one. More...
 
(void) - serializePropertiesWithJsonObject:
 Serializes the properties. More...
 
(NSString *) - toJson
 Serializes this to JSON. More...
 
- Instance Methods inherited from FMLiveSwitchBaseStats
(NSString *) - id
 Gets the identifier of the object generating these stats. More...
 
(NSDate *) - timestamp
 Gets the timestamp when these stats were generated. More...
 
- Instance Methods inherited from <FMLiveSwitchIEquivalent>
(bool) - isEquivalentWithInstance:
 Checks if an instance is equivalent to this one. More...
 

Class Methods

(FMLiveSwitchCertificateStats *) + certificateStats
 
(NSMutableArray *) + fromJsonArrayWithCertificatesJson:
 Derializes an array of certificate stats from JSON. More...
 
(FMLiveSwitchCertificateStats *) + fromJsonWithCertificateJson:
 Derializes certificate stats from JSON. More...
 
(NSString *) + toJsonArrayWithCertificates:
 Serializes an array of certificate stats to JSON. More...
 
(NSString *) + toJsonWithCertificate:
 Serializes certificate stats to JSON. More...
 
- Class Methods inherited from FMLiveSwitchBaseStats
(FMLiveSwitchBaseStats *) + baseStats
 

Detailed Description

Certificate stats.

Method Documentation

◆ certificateBase64

- (NSString*) certificateBase64

Gets the certificate in Base64 format.

◆ certificateStats

+ (FMLiveSwitchCertificateStats*) certificateStats

◆ deserializePropertiesWithKey:valueJson:

- (void) deserializePropertiesWithKey: (NSString *)  key
valueJson: (NSString *)  valueJson 

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Implements FMLiveSwitchBaseStats.

◆ fingerprint

- (NSString*) fingerprint

Gets the fingerprint.

◆ fingerprintAlgorithm

- (NSString*) fingerprintAlgorithm

Gets the fingerprint algorithm.

◆ fromJsonArrayWithCertificatesJson:

+ (NSMutableArray*) fromJsonArrayWithCertificatesJson: (NSString *)  certificatesJson

Derializes an array of certificate stats from JSON.

Parameters
certificatesJsonThe certificates' stats JSON.

◆ fromJsonWithCertificateJson:

+ (FMLiveSwitchCertificateStats*) fromJsonWithCertificateJson: (NSString *)  certificateJson

Derializes certificate stats from JSON.

Parameters
certificateJsonThe certificate's stats JSON.

◆ init

- (instancetype) init

Implements FMLiveSwitchBaseStats.

◆ isEquivalentWithInstance:

- (bool) isEquivalentWithInstance: (FMLiveSwitchCertificateStats *)  instance

Checks if a certificate is equivalent to this one.

Parameters
instanceThe certificate.

◆ serializePropertiesWithJsonObject:

- (void) serializePropertiesWithJsonObject: (NSMutableDictionary< NSString *, NSString * > *)  jsonObject

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Implements FMLiveSwitchBaseStats.

◆ toJson

- (NSString*) toJson

Serializes this to JSON.

◆ toJsonArrayWithCertificates:

+ (NSString*) toJsonArrayWithCertificates: (NSMutableArray *)  certificates

Serializes an array of certificate stats to JSON.

Parameters
certificatesThe certificates' stats.

◆ toJsonWithCertificate:

+ (NSString*) toJsonWithCertificate: (FMLiveSwitchCertificateStats *)  certificate

Serializes certificate stats to JSON.

Parameters
certificateThe certificate's stats.