Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
74 lines (62 sloc) 2.42 KB
//
// SRNegotiationResponse.m
// SignalR
//
// Created by Alex Billingsley on 11/1/11.
// Copyright (c) 2011 DyKnow LLC. (http://dyknow.com/)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
// to permit persons to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of
// the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
//
#import "SRNegotiationResponse.h"
@interface SRNegotiationResponse ()
@end
@implementation SRNegotiationResponse
@synthesize connectionId = _connectionId;
@synthesize url = _url;
@synthesize protocolVersion = _protocolVersion;
static NSString * const kConnectionId = @"ConnectionId";
static NSString * const kUrl = @"Url";
static NSString * const kProtocolVersion = @"ProtocolVersion";
- (id) init
{
if (self = [super init])
{
_connectionId = [NSString stringWithFormat:@""];
_url = [NSString stringWithFormat:@""];
_protocolVersion = [NSString stringWithFormat:@""];
}
return self;
}
- (id)initWithDictionary:(NSDictionary*)dict
{
if (self = [super init])
{
_connectionId = [NSString stringWithFormat:@"%@",[dict objectForKey:kConnectionId]];
_url = [NSString stringWithFormat:@"%@",[dict objectForKey:kUrl]];
_protocolVersion = [NSString stringWithFormat:@"%@",[dict objectForKey:kProtocolVersion]];
}
return self;
}
- (NSString *)description
{
return [NSString stringWithFormat:@"NegotiationResponse: ConnectionId=%@ Url=%@ ProtocolVersion=%@",_connectionId,_url,_protocolVersion];
}
- (void)dealloc
{
_connectionId = nil;
_url = nil;
_protocolVersion = nil;
}
@end
Jump to Line
Something went wrong with that request. Please try again.