Java 类com.fasterxml.jackson.annotation.JsonAlias 实例源码

项目:bittrex4j    文件:Order.java   
@JsonCreator
public Order(@JsonProperty("AccountId") String accountId, @JsonProperty("OrderUuid") String orderUuid,
             @JsonProperty("Exchange") String exchange, @JsonProperty("Type") @JsonAlias("OrderType") String type,
             @JsonProperty("Quantity") double quantity, @JsonProperty("QuantityRemaining") double quantityRemaining,
             @JsonProperty("Limit") double limit, @JsonProperty("Reserved") double reserved,
             @JsonProperty("ReserveRemaining") double reserveRemaining, @JsonProperty("CommissionReserved") double commissionReserved,
             @JsonProperty("CommissionReserveRemaining") double commissionReserveRemaining, @JsonProperty("CommissionPaid") double commissionPaid,
             @JsonProperty("Price") double price, @JsonProperty("PricePerUnit") double pricePerUnit,
             @JsonProperty("Opened") ZonedDateTime opened, @JsonProperty("Closed") ZonedDateTime closed,
             @JsonProperty("IsOpen") boolean open, @JsonProperty("Sentinel") String sentinel,
             @JsonProperty("CancelInitiated") boolean cancelInitiated, @JsonProperty("ImmediateOrCancel")boolean immediateOrCancel,
             @JsonProperty("IsConditional") boolean conditional, @JsonProperty("Condition") String condition, @JsonProperty("ConditionTarget") String conditionTarget) {

    this.accountId = accountId;
    this.orderUuid = orderUuid;
    this.exchange = exchange;
    this.type = type;
    this.quantity = quantity;
    this.quantityRemaining = quantityRemaining;
    this.limit = limit;
    this.reserved = reserved;
    this.reserveRemaining = reserveRemaining;
    this.commissionReserved = commissionReserved;
    this.commissionReserveRemaining = commissionReserveRemaining;
    this.commissionPaid = commissionPaid;
    this.price = price;
    this.pricePerUnit = pricePerUnit;
    this.opened = opened;
    this.closed = closed;
    this.open = open;
    this.sentinel = sentinel;
    this.cancelInitiated = cancelInitiated;
    this.immediateOrCancel = immediateOrCancel;
    this.conditional = conditional;
    this.condition = condition;
    this.conditionTarget = conditionTarget;
}
项目:verify-service-provider    文件:HubMetadataConfiguration.java   
@JsonCreator
public HubMetadataConfiguration(
        @JsonProperty("uri") @JsonAlias({"url"}) URI uri,
        @JsonProperty("minRefreshDelay") Long minRefreshDelay,
        @JsonProperty("maxRefreshDelay") Long maxRefreshDelay,
        @JsonProperty("expectedEntityId") String expectedEntityId,
        @JsonProperty("client") JerseyClientConfiguration client,
        @JsonProperty("jerseyClientName") String jerseyClientName,
        @JsonProperty("hubFederationId") String hubFederationId,
        @JsonProperty("trustStore") TrustStoreConfiguration trustStoreConfiguration) {
    super(uri, minRefreshDelay, maxRefreshDelay, expectedEntityId, client,
            ofNullable(jerseyClientName).orElse(HUB_JERSEY_CLIENT_NAME), hubFederationId);
    this.trustStoreConfiguration = trustStoreConfiguration;
}
项目:verify-service-provider    文件:MsaMetadataConfiguration.java   
@JsonCreator
public MsaMetadataConfiguration(
        @JsonProperty("uri") @JsonAlias({ "url" }) URI uri,
        @JsonProperty("minRefreshDelay") Long minRefreshDelay,
        @JsonProperty("maxRefreshDelay") Long maxRefreshDelay,
        @JsonProperty(value = "expectedEntityId", required = true) String expectedEntityId,
        @JsonProperty("client") JerseyClientConfiguration client,
        @JsonProperty("jerseyClientName") String jerseyClientName,
        @JsonProperty("hubFederationId") String hubFederationId
) {
    super(uri, minRefreshDelay, maxRefreshDelay, expectedEntityId, client, ofNullable(jerseyClientName).orElse(MSA_JERSEY_CLIENT_NAME), hubFederationId);
}