| 59 | } |
| 60 | |
| 61 | JSONTimelineDecoder::TimelineStatus JSONTimelineDecoder::CreateRelationship(const Relationship& relationship) |
| 62 | { |
| 63 | if (relationship.m_RelationshipType == ITimelineDecoder::RelationshipType::RetentionLink) |
| 64 | { |
| 65 | HandleRetentionLink(relationship); |
| 66 | } |
| 67 | else if (relationship.m_RelationshipType == ITimelineDecoder::RelationshipType::LabelLink) |
| 68 | { |
| 69 | HandleLabelLink(relationship); |
| 70 | } |
| 71 | else if (relationship.m_RelationshipType == ITimelineDecoder::RelationshipType::ExecutionLink) |
| 72 | { |
| 73 | HandleExecutionLink(relationship); |
| 74 | } |
| 75 | else |
| 76 | { |
| 77 | m_Model.relationships.insert({relationship.m_Guid, relationship}); |
| 78 | } |
| 79 | |
| 80 | return TimelineStatus::TimelineStatus_Success; |
| 81 | } |
| 82 | |
| 83 | |
| 84 | void JSONTimelineDecoder::HandleExecutionLink(const ITimelineDecoder::Relationship& relationship) |
no outgoing calls