Inherits from NSObject
Declared in SRVersion.h

Overview

SRVersion represents the signalr protocol version number.

Tasks

Properties

Initializing an SRVersion Object

Properties

build

The value of the build component of the version number for the current SRVersion object.

@property (assign, nonatomic, readwrite) NSInteger build

Declared In

SRVersion.h

major

The value of the major component of the version number for the current SRVersion object.

@property (assign, nonatomic, readwrite) NSInteger major

Declared In

SRVersion.h

majorRevision

The value of the majorRevision component of the version number for the current SRVersion object.

@property (assign, nonatomic, readwrite) NSInteger majorRevision

Declared In

SRVersion.h

minor

The value of the minor component of the version number for the current SRVersion object.

@property (assign, nonatomic, readwrite) NSInteger minor

Declared In

SRVersion.h

minorRevision

The value of the minorRevision component of the version number for the current SRVersion object.

@property (assign, nonatomic, readwrite) NSInteger minorRevision

Declared In

SRVersion.h

revision

The value of the revision component of the version number for the current SRVersion object.

@property (assign, nonatomic, readwrite) NSInteger revision

Declared In

SRVersion.h

Class Methods

tryParse:forVersion:

Tries to convert the string representation of a version number to an equivalent SRVersion object, and returns a value that indicates whether the conversion succeeded.

+ (BOOL)tryParse:(NSString *)input forVersion:(SRVersion **)version

Parameters

input

an NSString representing an SRVersion to convert

version

the parsed SRVersion object

Return Value

a bool representing the sucess of the parse

Declared In

SRVersion.h

Instance Methods

initWithMajor:minor:

Initializes a new instance of the SRVersion class using the specified major and minor values.

- (id)initWithMajor:(NSInteger)major minor:(NSInteger)minor

Parameters

major

an NSInteger representing the major component of a version

minor

an NSInteger representing the minior component of a version

Declared In

SRVersion.h

initWithMajor:minor:build:

Initializes a new instance of the SRVersion class using the specified major, minor, and build values.

- (id)initWithMajor:(NSInteger)major minor:(NSInteger)minor build:(NSInteger)build

Parameters

major

an NSInteger representing the major component of a version

minor

an NSInteger representing the minior component of a version

build

an NSInteger representing the build component of a version

Declared In

SRVersion.h

initWithMajor:minor:build:revision:

Initializes a new instance of the SRVersion class using the specified major, minor, build and revision values.

- (id)initWithMajor:(NSInteger)major minor:(NSInteger)minor build:(NSInteger)build revision:(NSInteger)revision

Parameters

major

an NSInteger representing the major component of a version

minor

an NSInteger representing the minior component of a version

build

an NSInteger representing the build component of a version

revision

an NSInteger representing the revision component of a version

Declared In

SRVersion.h