// Generated by xsd compiler for ios/objective-c
// DO NOT CHANGE!

#import <Foundation/Foundation.h>
#import "Trading_PromotedItemType.h"
#import "Trading_PromotionDetailsType.h"

@implementation Trading_PromotedItemType

@synthesize itemID = _itemID;
@synthesize pictureURL = _pictureURL;
@synthesize position = _position;
@synthesize selectionType = _selectionType;
@synthesize title = _title;
@synthesize listingType = _listingType;
@synthesize promotionDetails = _promotionDetails;
@synthesize timeLeft = _timeLeft;
@synthesize any = _any;

// class meta-data method
// note: this method is only for internal use, DO NOT CHANGE!
+(PicoClassSchema *)getClassMetaData {
    return nil;
}

// property meta-data method
// note: this method is only for internal use, DO NOT CHANGE!
+(NSMutableDictionary *)getPropertyMetaData {
    NSMutableDictionary *map = [NSMutableDictionary dictionary];
    
    PicoPropertySchema *ps = nil;
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"ItemID" propertyName:@"itemID" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"itemID"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"PictureURL" propertyName:@"pictureURL" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"pictureURL"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"Position" propertyName:@"position" type:PICO_TYPE_INT clazz:nil];
    [map setObject:ps forKey:@"position"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"SelectionType" propertyName:@"selectionType" type:PICO_TYPE_ENUM clazz:nil];
    [map setObject:ps forKey:@"selectionType"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"Title" propertyName:@"title" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"title"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"ListingType" propertyName:@"listingType" type:PICO_TYPE_ENUM clazz:nil];
    [map setObject:ps forKey:@"listingType"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT_ARRAY xmlName:@"PromotionDetails" propertyName:@"promotionDetails" type:PICO_TYPE_OBJECT clazz:[Trading_PromotionDetailsType class]];
    [map setObject:ps forKey:@"promotionDetails"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"TimeLeft" propertyName:@"timeLeft" type:PICO_TYPE_DURATION clazz:nil];
    [map setObject:ps forKey:@"timeLeft"];
    [ps release];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ANY_ELEMENT xmlName:@"any" propertyName:@"any" type:PICO_TYPE_ANYELEMENT clazz:nil];
    [map setObject:ps forKey:@"any"];
    [ps release];
    
    return map;
}



-(void)dealloc {
    self.itemID = nil;
    self.pictureURL = nil;
    self.position = nil;
    self.selectionType = nil;
    self.title = nil;
    self.listingType = nil;
    self.promotionDetails = nil;
    self.timeLeft = nil;
    self.any = nil;
    [super dealloc];
}

@end
