Пример #1
0
 public void AddFriend(long characterId)
 {
     CharacterRelationDTO addRelation = new CharacterRelationDTO
     {
         CharacterId = CharacterId,
         RelatedCharacterId = characterId,
         RelationType = CharacterRelationType.Friend
     };
     DAOFactory.CharacterRelationDAO.InsertOrUpdate(ref addRelation);
     friends = DAOFactory.CharacterRelationDAO.GetFriends(CharacterId);
 }
Пример #2
0
 public void AddBlacklisted(long characterId)
 {
     CharacterRelationDTO addRelation = new CharacterRelationDTO
     {
         CharacterId = CharacterId,
         RelatedCharacterId = characterId,
         RelationType = CharacterRelationType.Blocked
     };
     DAOFactory.CharacterRelationDAO.InsertOrUpdate(ref addRelation);
 }