1 package org.oxerr.okcoin.rest.dto; 2 3 import com.fasterxml.jackson.annotation.JsonProperty; 4 5 public class BorrowResult extends ErrorResult { 6 7 private static final long serialVersionUID = 2015022001L; 8 9 private final long borrowId; 10 11 public BorrowResult( 12 @JsonProperty("result") boolean result, 13 @JsonProperty("borrow_id") long borrowId) { 14 super(result); 15 this.borrowId = borrowId; 16 } 17 18 public long getBorrowId() { 19 return borrowId; 20 } 21 22 }