Skip to content

Commit

Permalink
Merge pull request #36 from AsrOneSdk/sanjkuma-dev
Browse files Browse the repository at this point in the history
Show ObjectType only when ObjectId is returned.
  • Loading branch information
sanjkuma committed Feb 3, 2015
2 parents c521b3d + 38cd5a0 commit 7a72b59
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,12 @@ public ASRJob(Job job)
this.Name = job.Name;
this.TargetObjectId = job.TargetObjectId;
this.TargetObjectName = job.TargetObjectName;
this.TargetObjectType = job.TargetObjectType;

if (!string.IsNullOrEmpty(job.TargetObjectId))
{
this.TargetObjectType = job.TargetObjectType;
}

this.Tasks = new List<ASRTask>();
foreach (var task in job.Tasks)
{
Expand Down

0 comments on commit 7a72b59

Please sign in to comment.