#import "GSResultItem.h"

@implementation GSResultItem

-(id) initWithOID:(NSString*)oid withTitle:(NSString*)title
{
  return [self initWithOID:oid withTitle:title withSrcUrl:nil];
}

-(id) initWithOID:(NSString*)oid withTitle:(NSString*)title withSrcUrl:(NSString*)srcurl
{
  self = [super init];

  _oid = oid;
  _title = title;
  _srcurl = srcurl;

  return self;
}

-(NSString*) oid
{
  return _oid;
}

-(NSString*) title 
{
  return _title;
}

-(NSString*) srcurl
{
  return _srcurl;
}


/*
-(void) printUnused // ******
{
  printf("(");
  [_oid print];
  printf(",");
  [_title print];
  printf(",");
  [_srcurl print];
  printf(")");
}
*/

-(void) dealloc
{
  [_oid release];
  [_title release];
  [_srcurl release];

  [super dealloc];
}

@end
