components/src/main/java/eu/internetofus/common/components/social_context_builder/UserRelation.java
/**
   * Convert to a {@link SocialNetworkRelationship}.
   *
   * @return the relationship that can be inferred of the relation.
   */
Convert to a  SocialNetworkRelationship.
@return the relationship that can be inferred of the relation.
Convert to a SocialNetworkRelationship . @return the relationship that can be inferred of the relation .
public SocialNetworkRelationship toSocialNetworkRelationship() {
    final var relationship = new SocialNetworkRelationship();
    relationship.sourceId = this.UserID1;
    relationship.targetId = this.UserID2;
    relationship.type = SocialNetworkRelationshipType.acquaintance;
    return relationship;
  }
public SocialNetworkRelationship toSocialNetworkRelationship ( ) { final var relationship = new SocialNetworkRelationship ( ) ; relationship . sourceId = this . UserID1 ; relationship . targetId = this . UserID2 ; relationship . type = SocialNetworkRelationshipType . acquaintance ; return relationship ; }
Convert to a {@link SocialNetworkRelationship}.
Convert to a { @link SocialNetworkRelationship } .