Package de.justi.yagw2api.wrapper

Examples of de.justi.yagw2api.wrapper.IGuild


  @Override
  public boolean equals(Object obj) {
    if(obj == null || !(obj instanceof IGuild)) {
      return false;
    }else{
      final IGuild guild = (IGuild)obj;
      return Objects.equal(this.id, guild.getId());
    }
  }
View Full Code Here


        potentialNewOwner = match.getWorldByDTOOwnerString(objectiveDTO.getOwner());
        objectiveModel.capture(potentialNewOwner.orNull());
        // 1.2 synchronize claiming guild
        claimedByGuildDTO = objectiveDTO.getGuildDetails();
        if (claimedByGuildDTO.isPresent()) {
          final IGuild guild = MODEL_FACTORY.getOrCreateGuild(claimedByGuildDTO.get().getId(), claimedByGuildDTO.get().getName(), claimedByGuildDTO.get().getTag());
          objectiveModel.claim(guild);
        } else {
          objectiveModel.claim(null);
        }
      } else {
View Full Code Here

    @Override
    public IWVWObjective.IWVWObjectiveBuilder fromDTO(IWVWObjectiveDTO dto) {
      checkNotNull(dto);
      final Optional<IGuildDetailsDTO> guildDetails = dto.getGuildDetails();
      if (guildDetails.isPresent()) {
        final IGuild guild = MODEL_FACTORY.getOrCreateGuild(guildDetails.get().getId(), guildDetails.get().getName(), guildDetails.get().getTag());
        checkState(guild != null);
        this.claimedBy(guild);
      }
      return this.location(WVWLocationType.forObjectiveId(dto.getId()).get());
    }
View Full Code Here

TOP

Related Classes of de.justi.yagw2api.wrapper.IGuild

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.