#------------------------------------------------------------
# Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved
#------------------------------------------------------------
package RPS::Track::TrackWithContracts;
use strict;
use warnings;

use Data::Dumper;

use lib '/app/tools/common/lib';
use Common::RSApp;
use Common::Assert;

use lib '/app/tools/rps/lib';
use RPS::Track::TrackSimple;
use RPS::Track::TrackContractWithArtistContractList;
use base 'RPS::Track::TrackSimple';

sub _initProperties {
    my ( $self, $props ) = @_;

    # Call the inherited method first.
    #
    $self->SUPER::_initProperties($props);

    # Now add in the contract list
    #
    $self->{TrackContractList} = RPS::Track::TrackContractWithArtistContractList->new( trackID => $props->{track_id} );
}

###
1;    # Play nicely.
###

