StreamingKit/ExampleApp/ExampleApp/SampleQueueId.m

45 lines
729 B
Objective-C

//
// SampleQueueId.m
// ExampleApp
//
// Created by Thong Nguyen on 20/01/2014.
// Copyright (c) 2014 Thong Nguyen. All rights reserved.
//
#import "SampleQueueId.h"
@implementation SampleQueueId
-(id) initWithUrl:(NSURL*)url andCount:(int)count
{
if (self = [super init])
{
self.url = url;
self.count = count;
}
return self;
}
-(BOOL) isEqual:(id)object
{
if (object == nil)
{
return NO;
}
if ([object class] != [SampleQueueId class])
{
return NO;
}
return [((SampleQueueId*)object).url isEqual: self.url] && ((SampleQueueId*)object).count == self.count;
}
-(NSString*) description
{
return [self.url description];
}
@end