상속: MappingBaseDTO
예제 #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);
 }