package WebService::GData::Batch::Entry; use base WebService::GData::Batch; sub batchId { my $this = shift; $this->{_batchId}=$_[0] if(@_==1); $this->{_batchId}; } sub update { my $this = shift; $this->{_update}= $_[0] if(@_==1); return $this->{_update}; } sub _serialize { my $this = shift; my $xml= ''; $xml.= q[]; $xml.= q[].$this->id.q[]; if($this->operation=~m/query|update|delete/) { $xml.= q[]; if($this->operation eq 'update'){ $xml.= $this->update; } } $xml.= q[].$this->batchId.q[] if($this->batchId); $xml.= ''; return $xml; } 1;